From 11163e32ecd718d2e338deda8e3c11d7954f1ece Mon Sep 17 00:00:00 2001 From: jpl Date: Fri, 18 Nov 2016 16:38:15 +0100 Subject: Refs #1989: adding paginate to workbench refs + add_new link --- app/controllers/workbenches_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/workbenches_controller.rb') diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb index 1d67db3ab..b23e9202e 100644 --- a/app/controllers/workbenches_controller.rb +++ b/app/controllers/workbenches_controller.rb @@ -4,6 +4,8 @@ class WorkbenchesController < BreadcrumbController respond_to :html, :only => [:show] def show + @wbench_refs = Workbench.find(params[:id]).referentials.paginate(page: params[:page], per_page: 2) + show! do build_breadcrumb :show end -- cgit v1.2.3