On Oct 27, 12:23 am, "Allan D." <[email protected]> wrote: > Yes its Nil, nothing loads, > so then it's unlikely to be anything to do with :include. You can see it doing stuff like SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
in your logs - if you run that query outside of rails do you get a row back? if that gets you a row and/or if User.find(some_entry.user_id) gets rows back then i'd whip out the debugger and step into the user accessor method to see what is happening Fred > Does it have something to do with Devise running as the authentication? > > I'm baffled why even a simple Entry.find(:include => :user) won't work > either > > Frederick Cheung wrote in post #1028696: > > > On Oct 26, 5:32pm, "Allan D." <[email protected]> wrote: > >> luck. > >> I just can't load a has_one association > > > So is entry.user non nil if you don't use the include option ? > > > Fred > > -- > Posted viahttp://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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

