Forum: Ruby on Rails Scaffolding - changing number of records per page

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.
55f28e9c77b35b1539af6be60986b0e4?d=identicon&s=25 Philip Rhoades (Guest)
on 2006-01-03 05:45
(Received via mailing list)
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
C8a634a01a2c4508360874bff7fb1a7f?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-01-03 05:51
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.
895a112c66d93cefcd06d2cf371219e6?d=identicon&s=25 Hasan Diwan (Guest)
on 2006-01-03 19:47
(Received via mailing list)
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>
This topic is locked and can not be replied to.