Displaying 1 result from an estimated 1 matches for "u_dat".
Did you mean:
udat
2009 Oct 04
3
Problem using ActiveRecord find with :joins and :select
Hi guys,
When I do:
temp = User.find(:all,
:joins => "INNER JOIN contents ON users.agent_id =
contents.id",
:select => "contents.id, users.id, users.u_date")
temp.first.inspect
It seems to work fine, but it only returns:
#<User id: 6, u_date: "2009-10-03 19:32:23">
but not the contents.id information.
I don''t get it, and I don''t know what to do to rectify this. It seems
like since I call find on User, it onl...