added pagination for all resources

This commit is contained in:
Hauke Klement
2015-03-11 16:13:45 +01:00
parent 400711ac58
commit acf03b1f51
20 changed files with 24 additions and 11 deletions

View File

@ -27,7 +27,7 @@ class ErrorsController < ApplicationController
private :error_params
def index
@errors = Error.for_execution_environment(@execution_environment).grouped_by_message
@errors = Error.for_execution_environment(@execution_environment).grouped_by_message.paginate(page: params[:page])
authorize!
end