# Dynamic finder \> popularity

**URL:** <https://www.ruby-forum.com/t/dynamic-finder-popularity/153027>\
**Category:** Rails\
**Created:** [November 11, 2008, 9:44am UTC](https://www.ruby-forum.com/t/dynamic-finder-popularity/153027 "2008-11-11T09:44:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 11, 2008, 9:44am UTC](https://www.ruby-forum.com/t/dynamic-finder-popularity/153027/1 "2008-11-11T09:44:05Z")

</div>

Hi,

i have popularity table wich has a relationship with the  
bookings-destinations. Some destinations are booked more then others.

The popularity table has the columns “primary-key” and a score.

Example

| TVC | 6 |  
| AZO | 4 |  
| TUO | 3 |  
| IVC | 1 |  
| VKO | 1 |  
| DMM | 1 |

Qeustion: how can i use a dynamic finder…with the purpose “show me the  
the top 20 popularity destinations”

Grtz…remco

---

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 11, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/dynamic-finder-popularity/153027/2 "2008-11-11T13:29:43Z")

</div>

So a

Destination.find(:all, :limit =\> 20, :order =\> ‘popularity desc’ )

is no good?
