diff options
author | francis <francis> | 2008-02-19 12:28:59 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-19 12:28:59 +0000 |
commit | d937da88e7ce6022b1d3105040c90fb3b3a83dc7 (patch) | |
tree | 8b9f45e17362dafe9c4a401afe6f68e7e883f40e /app/controllers/request_controller.rb | |
parent | 564f5453b76d7ab13b1752fccd727ca330fb3609 (diff) |
Show some successful requests on front page.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index d32a852a8..5e69c7873 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.51 2008-02-19 12:13:07 francis Exp $ +# $Id: request_controller.rb,v 1.52 2008-02-19 12:28:59 francis Exp $ class RequestController < ApplicationController @@ -26,6 +26,7 @@ class RequestController < ApplicationController end def frontpage + @info_requests = InfoRequest.find :all, :order => "created_at desc", :conditions => "prominence = 'normal' and described_state in ('successful', 'partially_successful')", :limit => 3 end # Page new form posts to |