Prashant Tiwari
2006-Apr-10 10:05 UTC
[Rails] 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 -- Posted via http://www.ruby-forum.com/.