Difference between <%= expression %> and <%= expression -%> on Ruby On Rails

ruby-on-rails

Solution

The '-%>' means, that no linebreak will be appended to the output of the expression. It's usefull if you want to control the amount of whitespace you have in the generated HTML but do not want to put all the code in a single line.

Problem

Possible Duplicate: Difference between -%> and %> in rails I need to know what is the difference between `<%= expression %>` and `<%= expression -%>` on rails, please help me to make good foundation on Ruby On Rails

Original source

Related problems