config/routes.rb in refinerycms-blog-1.6.2 vs config/routes.rb in refinerycms-blog-1.7.0
- old
+ new
@@ -1,14 +1,14 @@
::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'
get 'archive/:year(/:month)', :to => 'posts#archive', :as => 'archive_blog_posts'
- get 'tagged/:tag_id/:tag_name' => 'posts#tagged', :as => 'tagged_posts'
+ get 'tagged/:tag_id(/:tag_name)' => 'posts#tagged', :as => 'tagged_posts'
end
scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
scope(:path => 'blog', :as => 'blog', :module => 'blog') do
root :to => 'posts#index'
@@ -37,9 +37,10 @@
get :notification_recipients
post :notification_recipients
get :moderation
get :comments
+ get :teasers
end
end
end
end
end