Wednesday, October 26, 2011

[Rails] Re: find_each(:include => ) the association never loads

Thanks, But no luck,

I checked all the users and entries, they all match up with id's and are
not null.

I then proceeded to delete all but one entry/user.

They are both associated but still it never gets the user object.

I put "attr_accessible :user_id, :user" on the entry table. But still no
luck.
I just can't load a has_one association

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