diff options
| author | hukl <contact@smyck.org> | 2009-09-10 16:01:41 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-10 16:01:41 +0200 |
| commit | d7ec763c7ce069824aad24a6bd0d845ee74ed10d (patch) | |
| tree | 5def39dc36d468d190a072db2a089b7e8f12bd6a /config | |
| parent | 304ba222fb85178763746ded4c1d252124c9ddfd (diff) | |
added public rss controller plus template to render the latest 20 updates into a neat little atom feed
Diffstat (limited to 'config')
| -rw-r--r-- | config/initializers/xmlparser.rb | 8 | ||||
| -rw-r--r-- | config/routes.rb | 3 |
2 files changed, 11 insertions, 0 deletions
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 | |||
| 3 | self.next = other | 3 | self.next = other |
| 4 | remove! | 4 | remove! |
| 5 | end | 5 | end |
| 6 | end | ||
| 7 | |||
| 8 | module Builder | ||
| 9 | class XmlBase | ||
| 10 | def _escape(text) | ||
| 11 | text | ||
| 12 | end | ||
| 13 | end | ||
| 6 | end \ No newline at end of file | 14 | 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| | |||
| 23 | map.resources :menu_items, :member => {:sort => :post} | 23 | map.resources :menu_items, :member => {:sort => :post} |
| 24 | map.resource :session | 24 | map.resource :session |
| 25 | 25 | ||
| 26 | map.rss 'rss/:action', :controller => 'rss' | ||
| 27 | map.rss 'rss/:action.:format', :controller => 'rss' | ||
| 28 | |||
| 26 | map.connect ':controller/:action/:id' | 29 | map.connect ':controller/:action/:id' |
| 27 | map.connect ':controller/:action/:id.:format' | 30 | map.connect ':controller/:action/:id.:format' |
| 28 | 31 | ||
