paginate list history

This commit is contained in:
2012-09-07 12:12:40 +02:00
parent 3adf392e54
commit 2be6c0ee03
4 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ class UserController < ApplicationController
# Displays the closed lists of the user
# GET /user/list_history
def list_history
@lists = current_user.lists
@lists = List.for_user(current_user, page: params[:page], per_page: params[:per_page].presence || 14)
render layout: 'phone'
end