aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJohn Agan <johnagan@gmail.com>2012-07-31 00:07:49 -0400
committerPhilip Arndt <parndt@gmail.com>2012-09-05 12:54:09 +1200
commit6cc795274d9d1de415951dd6d8e1c0d1c99e237c (patch)
tree73bacac23df00f68bbf2516339121cd7ec9579f3 /config
parentb81af5b599d3535ffded519588a055a52fb80193 (diff)
downloadrefinerycms-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.rb4
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