Philip Rhoades
2006-Jan-03 04:45 UTC
[Rails] Scaffolding - changing number of records per page
People, This is probably simple but I couldn''t find where to change the default 10 records per page for scaffolding . . Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Mobile: +61:(0)411-185-652 Fax: +61:(0)2-8221-9599 E-mail: phil@pricom.com.au
Kevin Olbrich
2006-Jan-03 04:51 UTC
[Rails] Re: Scaffolding - changing number of records per page
Philip Rhoades wrote:> People, > > This is probably simple but I couldn''t find where to change the default > 10 records per page for scaffolding . .look in the ''list'' action. The paginate command has a :per_page => 10. -- Posted via http://www.ruby-forum.com/.
Hasan Diwan
2006-Jan-03 18:44 UTC
[Rails] Scaffolding - changing number of records per page
Phil: On Jan 2, 2006, at 8:45 PM, Philip Rhoades wrote:> This is probably simple but I couldn''t find where to change the > default > 10 records per page for scaffolding . .The paginate method takes a :per_page parameter, which I used to change the 10-record limit. Cheers, Hasan Diwan <hasan.diwan@gmail.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060103/d9adfb7c/PGP.bin