From aec8d69e3b831ed489a5284c0487171331b316a2 Mon Sep 17 00:00:00 2001 From: "J. Edward Dewyea" Date: Sat, 20 Nov 2010 15:28:06 -0500 Subject: :name_prefix has been deprecated --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 5653aac..1426f75 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,8 +6,8 @@ if Rails.version < '3.0.0' blog.post ':id', :controller => "posts", :action => 'show' blog.category 'categories/:id', :controller => "categories", :action => 'show' blog.post_blog_comments ':id/comments', :controller => 'posts', :action => 'comment' - - + + ## what is the rails2 syntax for this? sorry ;__; # get 'archive/:year/:month', :on => :collection, :action => :archive, :as => 'archive' end @@ -45,7 +45,7 @@ else end scope(:path => 'refinery', :as => 'admin', :module => 'admin') do - scope(:path => 'blog', :name_prefix => 'admin', :as => 'blog', :module => 'blog') do + scope(:path => 'blog', :as => 'admin_blog', :module => 'blog') do root :to => 'posts#index' resources :posts -- cgit v1.2.3 From b663684114f5c56122ef4f74474d094d5399fd13 Mon Sep 17 00:00:00 2001 From: "J. Edward Dewyea" Date: Sat, 20 Nov 2010 15:42:13 -0500 Subject: remove unnecessary prefix --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 1426f75..ea3c3bc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -45,7 +45,7 @@ else end scope(:path => 'refinery', :as => 'admin', :module => 'admin') do - scope(:path => 'blog', :as => 'admin_blog', :module => 'blog') do + scope(:path => 'blog', :as => 'blog', :module => 'blog') do root :to => 'posts#index' resources :posts -- cgit v1.2.3