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 --- config/initializers/xmlparser.rb | 8 ++++++++ config/routes.rb | 3 +++ 2 files changed, 11 insertions(+) (limited to 'config') diff --git a/config/initializers/xmlparser.rb b/config/initializers/xmlparser.rb index ba8660a..9c3f1c8 100644 --- a/config/initializers/xmlparser.rb +++ b/config/initializers/xmlparser.rb @@ -3,4 +3,12 @@ class XML::Node self.next = other remove! end +end + +module Builder + class XmlBase + def _escape(text) + text + end + end end \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 1706dad..d591619 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -23,6 +23,9 @@ ActionController::Routing::Routes.draw do |map| map.resources :menu_items, :member => {:sort => :post} map.resource :session + map.rss 'rss/:action', :controller => 'rss' + map.rss 'rss/:action.:format', :controller => 'rss' + map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' -- cgit v1.3