On Mon, Dec 29, 2008 at 2:37 PM, sa 125
<rails-mailing-l...@andreas-s.net> wrote:
>
> 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>

> I'm getting an error 'undefined local variable or method `product`..'

The name of the local variable is the name of the partial, which is product_edit
in this case.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to