Possible Duplicate:
Difference between -%> and %> in rails
So for an ERB file, what's the difference between <%- ... -%> vs. <% ... %>? As far as I can tell, they serve the same purpose but one requires more typing than the other.
Using the dash removes the whitespace around the ERB tag, there is a RailsCast that talks about this and some other View tricks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With