Order records from multiple models by attribute

Posted by Labuschin on Stack Overflow See other posts from Stack Overflow or by Labuschin
Published on 2010-05-21T21:50:20Z Indexed on 2010/05/22 0:00 UTC
Read the original article Hit count: 114

Filed under:
|
|
|
|

Given the three models “message”, “profile” and “comment” i want to merge them into one list, ordered by their common attribute “created_at”. I want to accomplish something like the project overview in Basecamp - see 3) here: http://basecamphq.com/tour#overview

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about multiple