Sunday, April 8, 2012

Re: [Rails] Re: Rails association not working. "Undefined method" error in trying to access child object from pa

On 9 April 2012 06:27, Vikram A. <lists@ruby-forum.com> wrote:
> Hi Colin,
>
> The error here is not the issue, I have rectified it. My point is having
> declared the associations properly with belongs_to, has_many...when in
> the console I don't get any association methods. I should be able to
> access child object from parent object based on these declarations, but
> continues to show 'undefined method'.

You have not quoted the previous message so I have not idea what this
message is about. Remember this is a mailing list not a forum.
Please post the exact error you are seeing (copy/paste it here from
the console if you are seeing it in the console) and post the relevant
sections of code also (the association definitions if it seems to be a
problem with them).

Colin

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


Real Estate