From d7ec763c7ce069824aad24a6bd0d845ee74ed10d Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 10 Sep 2009 16:01:41 +0200 Subject: added public rss controller plus template to render the latest 20 updates into a neat little atom feed --- app/controllers/rss_controller.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/controllers/rss_controller.rb (limited to 'app/controllers/rss_controller.rb') diff --git a/app/controllers/rss_controller.rb b/app/controllers/rss_controller.rb new file mode 100644 index 0000000..d2540d0 --- /dev/null +++ b/app/controllers/rss_controller.rb @@ -0,0 +1,16 @@ +class RssController < ApplicationController + + def updates + + @items = Page.heads.find_tagged_with( + "update", + :order => "published_at DESC", + :limit => 20 + ) + + respond_to do |format| + format.xml {} + end + end + +end -- cgit v1.3