diff options
author | John Agan <johnagan@gmail.com> | 2012-07-31 00:07:49 -0400 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-09-05 12:54:09 +1200 |
commit | 6cc795274d9d1de415951dd6d8e1c0d1c99e237c (patch) | |
tree | 73bacac23df00f68bbf2516339121cd7ec9579f3 /config | |
parent | b81af5b599d3535ffded519588a055a52fb80193 (diff) | |
download | refinerycms-blog-6cc795274d9d1de415951dd6d8e1c0d1c99e237c.tar.gz refinerycms-blog-6cc795274d9d1de415951dd6d8e1c0d1c99e237c.tar.bz2 refinerycms-blog-6cc795274d9d1de415951dd6d8e1c0d1c99e237c.zip |
Added the ability to use a different url than "/blog"
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index ad8d138..f3467bd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ Refinery::Core::Engine.routes.draw do - namespace :blog do + namespace :blog, :path => Refinery::Blog.page_url do root :to => "posts#index" resources :posts, :only => [:show] @@ -12,7 +12,7 @@ Refinery::Core::Engine.routes.draw do namespace :blog, :path => '' do namespace :admin, :path => 'refinery' do - scope :path => 'blog' do + scope :path => Refinery::Blog.page_url do root :to => "posts#index" resources :posts do |