Print in ERB without <%=?

erb, ruby-on-rails

Solution

http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-concat

Should be what you are looking for.

E.g. the following statement using `concat`:

<% concat "Output" %>

is equivalent to:

<%= "Output" %>

Problem

Sometimes it's more convenient to print in <%%>. How to do it in Rails?

Original source