Closed lexruee closed 9 years ago
Some teams put lot of garbage data on the cyber coach server. So this topic must be solved.
Hi Alex, As we consider only users that are subscribed to our app, this should not be a huge problem, what do you think? Also for friend requests, we can grab the user from our DB.
@wanze It is the simplest solution, here we could use the gem will_paginate. I was thinking of integrating the gem will_paginate into our Facade::BaseFacade class.
@wanze What do you think of this commit? e975c556e1ea352bee0e9bd20b306b72c44a36e0
Controller:
@users = Facade::User.paginate(:page => params[:page], :per_page => 5)
View:
<%= will_paginate @users %>
Commit 7cc70098c566d0e9dde8b7709de51bbe18635cde closes this issue #23.
I created a simple example for pagination. See users_controller.rb:
Can this be done in a much more elegant way?