What is the difference between :
<% @posts.each do |p| -%>
<%= p.title %>
<% end -%>
and
<% @posts.each do |p| %>
<%= p.title %>
<% end %>
and is there any ?
What is the difference between :
<% @posts.each do |p| -%>
<%= p.title %>
<% end -%>
and
<% @posts.each do |p| %>
<%= p.title %>
<% end %>
and is there any ?
There is no difference.
"-%>" is completely useless in Rails 3.