Came across this recently while working with Devise. I know <%= prints, while <% keeps results hidden. What does <%- do?
Asked
Active
Viewed 37 times
0
Joe Morano
- 1,715
- 10
- 50
- 114
-
It is rails not Ruby. Erb specifically. It prints w/o the new line – Doon Jul 27 '16 at 17:53
-
I believe this is the same question: http://stackoverflow.com/questions/10431809/ruby-on-rails-what-does-this-symbol-mean-in-erb?rq=1 – ripvlan Jul 27 '16 at 18:11