diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/request_controller.rb | 4 | ||||
-rw-r--r-- | app/views/request/list.rhtml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 2756b9452..b1c27ecb6 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.10 2007-10-31 12:14:20 francis Exp $ +# $Id: request_controller.rb,v 1.11 2007-11-01 05:44:43 francis Exp $ class RequestController < ApplicationController @@ -15,7 +15,7 @@ class RequestController < ApplicationController end def list - @info_request_pages, @info_requests = paginate :info_requests, :per_page => 25, :order => "created_at desc" + @info_requests = InfoRequest.paginate :order => "created_at desc", :page => params[:page], :per_page => 25 end def frontpage diff --git a/app/views/request/list.rhtml b/app/views/request/list.rhtml index 815c440b9..b898e83f5 100644 --- a/app/views/request/list.rhtml +++ b/app/views/request/list.rhtml @@ -23,7 +23,7 @@ </table> <p> -<%= pagination_links(@info_request_pages) %> +<%= will_paginate(@info_requests) %> </p> |