Älphä Blüë wrote: > Right from the will_paginate RDOCs.. > > :per_page — defaults to CurrentModel.per_page (which is 30 if not > overridden) > > I thought by placing in the variable for numteams = 20 and applying that > to the per_page it would override it...
That works, but it would be better to actually override the method in your model: def self.per_page 20 end Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

