I'm trying to create an editable table by rendering a partial containing a form.
In the index: <table> <%= render :partial => 'product_edit', :collection => @products %> </table> In the partial: <% form_for :product do |f| %> <tr> <td><%= f.text_field :name %></td> <td><%= f.select :in_stock, [['YES','true'],['NO','false']] %></td> </tr> <% end %> I'm getting an error 'undefined local variable or method `product`..' What am I doing wrong? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---