Writing To The Response in Rails? (Like "echo" in PHP)
- by Yar
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? I have tried response.write which almost worked, but did not...
Edit: print or puts do not do it, because I do not want to write to the console. I want to write to the browser/HTTP client.
…