Use <% end %> instead of <% end -%> in erb