[Rails] Re: will_paginate not showing

2009-05-05 Thread Stephen Fagan
Franz Strebel wrote: On Mon, Sep 22, 2008 at 1:41 PM, MR Damien rails-mailing-l...@andreas-s.net wrote: I though this argument was facultative. If you don't specify anything, it will display 30 :per_page Franz Thanks Franz, you know I originally had that but it did not work

[Rails] Re: will_paginate not showing

2008-09-22 Thread Erol Fornoles
On Sep 22, 7:24 pm, MR Damien [EMAIL PROTECTED] wrote: Hi, I am trying to use the will_paginate helper. I installed the gem and put require 'will_paginate' in the environment.rb file. In my controller @tasks  = Task.paginate  :page = params[:page], :order = 'date_begin DESC' In my

[Rails] Re: will_paginate not showing

2008-09-22 Thread Thorsten Müller
I think you're missing the :per_page option @tasks = Task.paginate :page = params[:page], :per_page = 50, :order = 'date_begin DESC' should work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: will_paginate not showing

2008-09-22 Thread Franz Strebel
On Mon, Sep 22, 2008 at 1:41 PM, MR Damien [EMAIL PROTECTED] wrote: I though this argument was facultative. If you don't specify anything, it will display 30 :per_page Franz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: will_paginate not showing

2008-09-22 Thread MR Damien
Thorsten Mueller wrote: I think you're missing the :per_page option @tasks = Task.paginate :page = params[:page], :per_page = 50, :order = 'date_begin DESC' should work. You win :) I though this argument was facultative. -- Posted via http://www.ruby-forum.com/.