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

@ -28,7 +28,7 @@ class HintsController < ApplicationController
private :hint_params
def index
@hints = @execution_environment.hints.order(:name)
@hints = @execution_environment.hints.order(:name).paginate(page: params[:page])
authorize!
end