On Oct 22, 1:48 pm, Eduardo Bueno <[email protected]>
wrote:
>
> def index
> @clients = Client.paginate :page => params[:page], :per_page => 5
> end
>
> and the code in clients/index.html.erb:
>
> <%= will_paginate @clients %>
>
> The problem is I don't see any client specification. The pagination is
> working fine, there are 13 recorded clients in the database and it shows
> 3 pages total.
>
All that snippet is supposed to do is display the pagination links -
you still need to iterate over @clients and render the html for each
one.
Fred
> Just in case, I'm using rails 2.3.4 and will_paginate 2.3.11 (latest
> version from github).
>
> Attachments:http://www.ruby-forum.com/attachment/4171/clients.JPG
>
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---