On Rails, is there a way to render content other than the <% =%> tag?
2 answers
concat will do:
<% concat ("wah ha ha!") %>
Help:
http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001710
from source code,
<% output_buffer << "hmm" %>
will work too, and it is checked ... but I think this is even lower level and should be avoided.
+2
source share