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... -- Posted via http://www.ruby-forum.com/.
Witold Rugowski 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 beWhy can''t you use <%= %> ? -- Posted via http://www.ruby-forum.com/.
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. -- ? la renverse.