On 30 July 2010 01:40, Eddie Du <[email protected]> wrote: > I'm trying to render a list of div's with ids "item1", "item2", "item3", > etc.. > Trying to do it like this: > > <% for i in [email protected] %> > > <div id="item<%= i %>" > > .. blah blah .. > </div> > > <% end %> > > Pretty sure the syntax is wrong. I couldn't find the answer after > googling for a bit - perhaps I'm too new and dont know where to look.
What is the problem that you see? 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

