I have a partial _album.html.erb and it has a variable "album" I have a collection @albums . For each in the collection I want to render the partial. But I don't use the option "collection:" because I want to put each one in different position. Here is my code:
<% @albums.each do | f | %>
..........
<td>
<%= render partial: "album", locals: {"album" f} %>
.........
<% end %>
This code returns a SyntaxError. I don't know why this happens.