I know that I can do this in Rails:
<%=\"hello\" %>
but is there any way to do this
<% echo \"hello\" %>
Use concat, I've tried it and it works. However if you need to use HTML chars use:
concat
concat(sanitize("STRING"))
or open your app/helpers/application_helper.rb and write:
app/helpers/application_helper.rb
def echo(str) concat sanitize str end
so you can just type: echo "hello\n"
echo "hello\n"