diff options
Diffstat (limited to 'app/controllers/rss_controller.rb')
| -rw-r--r-- | app/controllers/rss_controller.rb | 16 |
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 @@ | |||
| 1 | class 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 | |||
| 16 | end | ||
