diff options
author | Philip Arndt <parndt@gmail.com> | 2012-02-01 16:34:06 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-02-01 16:34:06 +1300 |
commit | 33bfa4dd231e4042456b3a70059c9cf57af858cf (patch) | |
tree | d51f175d17423e128cf23b294686fbb361a58189 /config | |
parent | 30ebf2d338cdd1eff3f78fe4f865c98c02b0ad7e (diff) | |
download | refinerycms-blog-33bfa4dd231e4042456b3a70059c9cf57af858cf.tar.gz refinerycms-blog-33bfa4dd231e4042456b3a70059c9cf57af858cf.tar.bz2 refinerycms-blog-33bfa4dd231e4042456b3a70059c9cf57af858cf.zip |
Added support for new code in Refinery CMS since resolve/refinerycms#1234
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/config/routes.rb b/config/routes.rb index 3521af2..62fac89 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,21 +1,19 @@ -Rails.application.routes.draw do - namespace :refinery, :path => '' do - namespace :blog do - root :to => "posts#index" - - resources :posts, :only => [:show] - - match 'feed.rss', :to => 'posts#index', :as => 'rss_feed', :defaults => {:format => "rss"} - match 'categories/:id', :to => 'categories#show', :as => 'category' - match ':id/comments', :to => 'posts#comment', :as => 'comments' - get 'archive/:year(/:month)', :to => 'posts#archive', :as => 'archive_posts' - get 'tagged/:tag_id(/:tag_name)' => 'posts#tagged', :as => 'tagged_posts' - end +Refinery::Core::Engine.routes.draw do + namespace :blog, :path => '' do + root :to => "posts#index" + resources :posts, :only => [:show] + + match 'feed.rss', :to => 'posts#index', :as => 'rss_feed', :defaults => {:format => "rss"} + match 'categories/:id', :to => 'categories#show', :as => 'category' + match ':id/comments', :to => 'posts#comment', :as => 'comments' + get 'archive/:year(/:month)', :to => 'posts#archive', :as => 'archive_posts' + get 'tagged/:tag_id(/:tag_name)' => 'posts#tagged', :as => 'tagged_posts' + end - namespace :refinery do - namespace :blog do - namespace :admin, :path =>'' do + namespace :blog, :path => '' do + namespace :admin, :path => 'refinery' do + scope :path => 'blog' do root :to => "posts#index" resources :posts do |