What is the meaning of "-" in blocks of server-side code in ruby on rails?
Posted
by mmacaulay
on Stack Overflow
See other posts from Stack Overflow
or by mmacaulay
Published on 2010-04-06T00:54:12Z
Indexed on
2010/04/06
1:03 UTC
Read the original article
Hit count: 281
ruby-on-rails
|erb
I often see things like this in rails views:
<% form_tag some_path do -%>
<% end -%>
Why is there a "-" at the end of each of those lines? My code works fine without it, but is it a best practice or some kind of security measure?
© Stack Overflow or respective owner