http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html lists a set of Recognized Tags – however, this list seems incomplete; for one thing it’s missing the dash variant (<%- ... -%>, which suppresses line breaks IIRC).
Now I’ve come across another seemingly undocumented variant:
<%=h some_variable %>
<%= link_to h(some_variable) ... %>
Google wouldn’t tell me what that was all about; can anyone point me to an explanation?
It’s not an ERB syntax. It is
<%= ... %>and inside it is calling theERB::Util.hmethod