diff options
author | Jack Kinsella <jack@hermestechnologies.ie> | 2011-07-22 06:54:28 -0700 |
---|---|---|
committer | Jack Kinsella <jack@hermestechnologies.ie> | 2011-07-22 06:54:28 -0700 |
commit | d8a2fe3eec07192ebc03600d6123720338d26ea2 (patch) | |
tree | 03e86025c481be32ec86c3897455b01b873b29e6 /config | |
parent | 5d493b154c97de5ba4558ced644ecf0f666df1f5 (diff) | |
download | refinerycms-blog-d8a2fe3eec07192ebc03600d6123720338d26ea2.tar.gz refinerycms-blog-d8a2fe3eec07192ebc03600d6123720338d26ea2.tar.bz2 refinerycms-blog-d8a2fe3eec07192ebc03600d6123720338d26ea2.zip |
Using preferred "defaults" hash to set format of blog/feed.rss to "rss".
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 1793edb..e26fe64 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ ::Refinery::Application.routes.draw do scope(:path => 'blog', :module => 'blog') do root :to => 'posts#index', :as => 'blog_root' - match 'feed.rss', :to => 'posts#index.rss', :as => 'blog_rss_feed' + match 'feed.rss', :to => 'posts#index', :as => 'blog_rss_feed', :defaults => {:format => "rss"} match ':id', :to => 'posts#show', :as => 'blog_post' match 'categories/:id', :to => 'categories#show', :as => 'blog_category' match ':id/comments', :to => 'posts#comment', :as => 'blog_post_blog_comments' |