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.
67654ec62eab59ae168f2c58250d65dd?d=identicon&s=25 raj ma (Guest)
on 2007-06-07 00: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.
D5036877e2e1c273c6260eb8b5ab573c?d=identicon&s=25 sof.ltd.plat@gmail.com (Guest)
on 2007-06-07 00: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'
67654ec62eab59ae168f2c58250d65dd?d=identicon&s=25 raj ma (Guest)
on 2007-06-07 00:17
no its not working.....
67654ec62eab59ae168f2c58250d65dd?d=identicon&s=25 raj ma (Guest)
on 2007-06-07 00:25
I fixed it
D5036877e2e1c273c6260eb8b5ab573c?d=identicon&s=25 sof.ltd.plat@gmail.com (Guest)
on 2007-06-07 03:56
(Received via mailing list)
How did u fix it?

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



On Jun 7, 11:55 am, "sof.ltd.p...@gmail.com" <sof.ltd.p...@gmail.com>
This topic is locked and can not be replied to.