diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -104,6 +104,10 @@ @prob_submissions << { :count => 0, :submission => nil } end end + + @announcements = Announcement.find(:all, + :conditions => "published = 1", + :order => "created_at DESC") end end