Just stick ''DESC'' in your order_by option
@note_pages, @notes (paginate :note,
:per_page => 20,
:conditions => ''is_log = 0'',
:order_by => ''logged_at DESC'')
-Lee
On 11/11/05, Steve Enzer <steve-tXZx7dh8Sz5Wk0Htik3J/w@public.gmane.org>
wrote:> How do you do a descending sort with paginate?
> My current code looks something like this:
>
> @note_pages, @notes > (paginate :note,
> :per_page => 20,
> :conditions => ''is_log = 0'',
> :order_by => ''logged_at'')
>
> I''d thought maybe '':descending => true'' would
work, but that''s not it
> (unknown option: descending), and I haven''t found a list of
options in the
> rails docs, has anyone yet come across this?
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>