diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-10-28 11:41:43 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:43 +0000 |
commit | b68c23074b7849b30e8f96ea024ec14ec4b8f324 (patch) | |
tree | cb2eaa9b6ebddc3f07583e2899fcf3bb044d9c92 /app/controllers/info_request_batch_controller.rb | |
parent | 0fdfad30f1232458ffcd624c893387ce300b49bb (diff) |
Add a rudimentary view for an info request batch.
Diffstat (limited to 'app/controllers/info_request_batch_controller.rb')
-rw-r--r-- | app/controllers/info_request_batch_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |