From acbd0f3e2f47e5fd1d235dd8e12351b85a499eca Mon Sep 17 00:00:00 2001 From: francis Date: Thu, 1 Nov 2007 05:44:43 +0000 Subject: Change from classic pagination to will_paginate --- app/controllers/request_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/request_controller.rb') 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 -- cgit v1.2.3