diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/list_controller.rb | 10 | ||||
-rw-r--r-- | app/controllers/request_controller.rb | 15 |
2 files changed, 20 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 diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb new file mode 100644 index 000000000..b1c994531 --- /dev/null +++ b/app/controllers/request_controller.rb @@ -0,0 +1,15 @@ +# app/controllers/request_controller.rb: +# Show information about one particular request. +# +# 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.1 2007-10-09 11:30:01 francis Exp $ + +class RequestController < ApplicationController + + def index + @info_request = InfoRequest.find(params[:id]) + end + +end |