summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-10 16:01:41 +0200
committerhukl <contact@smyck.org>2009-09-10 16:01:41 +0200
commitd7ec763c7ce069824aad24a6bd0d845ee74ed10d (patch)
tree5def39dc36d468d190a072db2a089b7e8f12bd6a /app/controllers
parent304ba222fb85178763746ded4c1d252124c9ddfd (diff)
added public rss controller plus template to render the latest 20 updates into a neat little atom feed
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/rss_controller.rb16
1 files changed, 16 insertions, 0 deletions
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 @@
1class RssController < ApplicationController
2
3 def updates
4
5 @items = Page.heads.find_tagged_with(
6 "update",
7 :order => "published_at DESC",
8 :limit => 20
9 )
10
11 respond_to do |format|
12 format.xml {}
13 end
14 end
15
16end