# Multi-model lookup

**URL:** <https://www.ruby-forum.com/t/multi-model-lookup/140144>\
**Category:** Rails\
**Created:** [June 11, 2008, 11:25am UTC](https://www.ruby-forum.com/t/multi-model-lookup/140144 "2008-06-11T11:25:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvias](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@arvias](https://www.ruby-forum.com/u/arvias)\
**Post date:** [June 11, 2008, 11:25am UTC](https://www.ruby-forum.com/t/multi-model-lookup/140144/1 "2008-06-11T11:25:16Z")

</div>

Hi

Is there an activerecord call that can look into more than one table  
are return an array of all objects sorted by date?

In my case I have three models: oranges, apples and potatoes. I would  
need a hash that contains these objects ordered by date (for  
pagination). [Orange, Potato, Orange, Apple] etc.

–  
M.
