aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/list_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2007-10-09 11:30:01 +0000
committerfrancis <francis>2007-10-09 11:30:01 +0000
commit126745d92a315d9a45469697fcc25d099aa27237 (patch)
tree961ad9efa6dc21af366657743f2c1978186a97f0 /app/controllers/list_controller.rb
parent1f4cfe91a4868e984d7e743a42b25d4fec5fe385 (diff)
Controller to display an individual request on /request/:id URLs.
Added navigation.
Diffstat (limited to 'app/controllers/list_controller.rb')
-rw-r--r--app/controllers/list_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index 16a0d0695..117b93c7a 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -4,12 +4,12 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: list_controller.rb,v 1.1 2007-10-08 15:16:22 francis Exp $
-
+# $Id: list_controller.rb,v 1.2 2007-10-09 11:30:01 francis Exp $
class ListController < ApplicationController
- def index
- @info_request_pages, @info_requests = paginate :info_requests, :per_page => 25
- end
+ def index
+ @info_request_pages, @info_requests = paginate :info_requests, :per_page => 25, :order => "created_at desc"
+ end
+
end