How to specify Ascending or Descending Option?

Hi,
I am accessing records in Stores table as follows in @store object.

@store_pages, @stores = paginate :stores, :order_by => ‘store_rating’,
:per_page => 10

Now I want that records returned by above objects should be in
descending order. How to do this in above statement?

PLeaase help me.

Thanx
Prash

:order_by => ‘store_rating desc’

Joe

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs