Possible Duplicate:
Difference between -%> and %> in rails
What's the difference between %>
and -%>
?
Thanks
Possible Duplicate:
Difference between -%> and %> in rails
What's the difference between %>
and -%>
?
Thanks
The dash removes whitespace around your ERB tag
also answered here Rails ERB <%- ... -%> vs. <% ... %>
in rails 3 - no difference in earlier versions, whether or not a carriage return was added