what does dash mean in ruby on rails html scriptlet ?

Posted by Nikita Rybak on Stack Overflow See other posts from Stack Overflow or by Nikita Rybak
Published on 2010-06-10T19:51:54Z Indexed on 2010/06/10 19:52 UTC
Read the original article Hit count: 326

Filed under:
|
|
|

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!

© Stack Overflow or respective owner

Related posts about html

Related posts about ruby-on-rails