diff options
author | francis <francis> | 2007-11-01 05:44:43 +0000 |
---|---|---|
committer | francis <francis> | 2007-11-01 05:44:43 +0000 |
commit | acbd0f3e2f47e5fd1d235dd8e12351b85a499eca (patch) | |
tree | b4b3218e82ec421c0a1090af7608671dfac5e873 /app/controllers/request_controller.rb | |
parent | afaae3dea3bf0d568e206173ab22f79b8aadc6ae (diff) |
Change from classic pagination to will_paginate
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 4 |
1 files changed, 2 insertions, 2 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 |