Re: [Rails] nested_form
On Wed, Feb 9, 2011 at 10:20 PM, Colin Law <clanlaw@googlemail.com> wrote:
> On 9 February 2011 20:37, Seb <sebastianthegreatful@gmail.com> wrote:
>> I'm trying to use the nested form gem
>> from https://github.com/madebydna/nested_form
>> However I'm getting undefined method `muscle_id' for
>> #<Muscle:0x00000004f6e0b0>
>> My code can be found at https://gist.github.com/818944
>
> What makes you think that the Muscle model has a method muscle_id? Is
> there a column of that name in the muscles table?
>
No there isnt and I'm actually trying to id of the muscle in question
which is associated through targets. Exercise has many muscles through
targets... you got an idea about what to pass as argument instead?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home