Hi!
In .rhtml template I’m trying to create some output, which should be
sent to browser. But this is inside <% %> not <%= %>, so how can it be
accomplished? Default output is directed to log file, so puts “output”
does not send to browser but to log file…
Witold R. wrote:
Hi!
In .rhtml template I’m trying to create some output, which should be
sent to browser. But this is inside <% %> not <%= %>, so how can it be
Why can’t you use <%= %> ?
Hello Witold,
In .rhtml template I’m trying to create some output, which
should be sent to browser. But this is inside <% %> not
<%= %>, so how can it be accomplished? Default output
is directed to log file, so puts “output” does not send to
browser but to log file…
You can write either :
<% _erbout << ‘foo’ %>
or :
<% _erbout.concat(‘foo’) %>
-- Jean-François.
Jean-François wrote:
<% _erbout << ‘foo’ %>
Thank You. _erbout is exactly I was looking for.