Hi, how can I properly add pagination to the following method?
def list
@titles = current_user.titles.find(:all, order => “created_date DESC”)
end
Hi, how can I properly add pagination to the following method?
def list
@titles = current_user.titles.find(:all, order => “created_date DESC”)
end
Jim P. wrote:
On Mon, 7 Jan 2008 13:37:32 +0100
Katsuo I. [email protected] wrote:Hi, how can I properly add pagination to the following method?
def list
@titles = current_user.titles.find(:all, order => “created_date DESC”)
endI personally use
http://cardboardrocket.com/pages/paginating_find
Very simple plugin, does the job nicely.
Thanks Jim, it worked very nicely!
On Mon, 7 Jan 2008 13:37:32 +0100
Katsuo I. [email protected] wrote:
Hi, how can I properly add pagination to the following method?
def list
@titles = current_user.titles.find(:all, order => “created_date DESC”)
end
I personally use
http://cardboardrocket.com/pages/paginating_find
Very simple plugin, does the job nicely.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs