On 11 June 2012 15:16, Jamal Soueidan <li...@ruby-forum.com> wrote: > Colin, I already tried that > > It's only outputting A and nothing else. > > but if I change to. > > <% @locations.each do |location| %> > <li>A <%=location.name%> B > <%=location.name%> C <%=location.name%> D <%=location.name%> E</li> > <% end %> > > it works.
Could you please quote the previous message so that it easier to follow the thread. Remember this is a mailing list not a forum (though you may be accessing it through a forum interface). If you did not have the each loop round it then what was setting up location? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.