On Tue, Jun 15, 2010 at 7:14 AM, Dee <[email protected]> wrote:
> Explain how to display the sku and color in the form for each item?
> <% f.fields_for @shelf.items do |item_fields| %>
> <%# ****Want :sku here**** #%>
Maybe I'm totally missing your point, but shouldn't that just be, e.g.
<% f.fields_for @shelf.items.each do |item| %>
<%= item.sku %>
...
??
--
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan
--
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.