Forum: Ruby on Rails order in pagination

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
raj ma (Guest)
on 2007-06-07 02:01
@post_pages, @posts = paginate :posts, :per_page => 5, :order => 'id'

The results are not ordered and I am not getting error and the results
not ordered in any order....is there any error in the syntax

??

Raj.
(Guest)
on 2007-06-07 02:13
(Received via mailing list)
maybe:

@post_pages, @posts = paginate :posts, :per_page => 5, :order => 'id
desc'

or

@post_pages, @posts = paginate :posts, :per_page => 5, :order => 'id
asc'
raj ma (Guest)
on 2007-06-07 02:17
no its not working.....
raj ma (Guest)
on 2007-06-07 02:25
I fixed it
(Guest)
on 2007-06-07 05:56
(Received via mailing list)
How did u fix it?

On Jun 6, 6:25 pm, Ravindraraj M. <rails-mailing-l...@andreas-
cammo (Guest)
on 2007-06-07 06:49
(Received via mailing list)
Surely the :order should be in your find, not in your pagination?



On Jun 7, 11:55 am, "removed_email_address@domain.invalid" 
<removed_email_address@domain.invalid>
This topic is locked and can not be replied to.