In the web I've seen examples both with
<% if @showIt -%>
some html content
<% end -%>
and without
<% if @showIt %>
some html content
<% end %>
dash. Both versions work very well. So, what difference does it make?
Thanks!
It's used to avoid inserting a newline after the code.
I found a very nice explanation here.
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