From b68c23074b7849b30e8f96ea024ec14ec4b8f324 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Mon, 28 Oct 2013 11:41:43 +0000 Subject: Add a rudimentary view for an info request batch. --- app/controllers/info_request_batch_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/info_request_batch_controller.rb') diff --git a/app/controllers/info_request_batch_controller.rb b/app/controllers/info_request_batch_controller.rb index 1e1030b53..f76f7abc2 100644 --- a/app/controllers/info_request_batch_controller.rb +++ b/app/controllers/info_request_batch_controller.rb @@ -2,6 +2,10 @@ class InfoRequestBatchController < ApplicationController def show @info_request_batch = InfoRequestBatch.find(params[:id]) + @per_page = 25 + @page = get_search_page_from_params + @info_requests = @info_request_batch.info_requests.all(:offset => (@page - 1) * @per_page, + :limit => @per_page) end end -- cgit v1.2.3