search for: last_repli

Displaying 1 result from an estimated 1 matches for "last_repli".

Did you mean: last_reply
2006 May 26
0
Paginate include => :last and order by value
Why does it seem like I''m having so much trouble with this? I created a topics table, and a replies table. In my Topic model I used the following lines of code: has_many :replies has_one :first_reply, :class_name => ''Reply'', :order => "created_on" has_one :last_reply, :class_name => ''Reply'', :order => "created_on DESC"