I’m trying to create an editable table by rendering a partial containing
a form.
In the index:
In the partial:
<% form_for :product do |f| %>
I’m getting an error ‘undefined local variable or method product
…’
What am I doing wrong?
I’m trying to create an editable table by rendering a partial containing
a form.
In the index:
In the partial:
<% form_for :product do |f| %>
I’m getting an error ‘undefined local variable or method product
…’
What am I doing wrong?
On Mon, Dec 29, 2008 at 2:37 PM, sa 125
[email protected] wrote:
I’m trying to create an editable table by rendering a partial containing
a form.In the index:
<%= render :partial => 'product_edit', :collection => @products %>
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.
right… thanks.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs