How to specify Ascending or Descending Option?


#1

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


#2

:order_by => ‘store_rating desc’

Joe