Writing To The Response in Rails? (Like "echo" in PHP)

Dan Rosenstark picture Dan Rosenstark · Feb 2, 2009 · Viewed 13.6k times · Source

I know that I can do this in Rails:

<%="hello" %>

but is there any way to do this

<%
echo "hello"
%>

and get it to show up in the response?

Answer

Vincent Robert picture Vincent Robert · Feb 2, 2009

Have you tried concat.

I have seen this when wandering in Rails documentation. Not sure at all since I am very new to Rails.