I am working on a simple plugin here and it works far. Except for my assistant. This is a very simple helper, you just need to echo <span></span> for further javascript analysis.
The problem is that it does not output html correcty, replacing special characters with equivalent html code.
My plugin initializer:
ActionView::Helpers.send :include, Test
My plugin helper:
module Test def only_for_testing render(:text => "<span></span>") end end
When I call the only_for_testing helper inside the view, instead of rendering "<span></span>" it displays " <span></span> "
I tried to remove the render, return only the string, the same effect. I really do not want to create partial for this, because it is very simple HTML code, and its not for layout, its just for parsing.
Any idea what I might have done wrong here?
source share