On Aug 10, 9:24 pm, Kayne <[email protected]> wrote:
> Yes, but I didn't understand this... I'm newb. I use now RailsSpace
> book.
> Will you so cool and translate to me: How can I change my code for
> will_paginate, please?
It's pretty simple. Your models gain a paginate method that is pretty
much exactly the same as find (it takes the same options
(:conditions, :order and so on) except that it also takes a :page and
a :per_page option and loads only the relevant records.
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---