Skip to content
Browse files

fixing rails 3 routing

  • Loading branch information...
1 parent d9e9682 commit 34c5be74bb36b47e471a22a39f375d200748f777 @cs3b committed Oct 29, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 config/routes.rb
View
12 config/routes.rb
@@ -15,19 +15,19 @@
else
Rails.application.routes.draw do
namespace :documentation do
- get 'features/:id', 'features#show', :constraints => {:id => /.*[^(\/(edit|statistic))]/},
- :as => :feature_show
- post 'features/:id', 'features#update', :constraints => {:id => /.*[^(\/edit)]/},
- :as => :feature_update
- resources :features do
+ get 'features/:id', :action => 'features#show', :constraints => {:id => /.*[^(\/(edit|statistic))]/},
+ :as => :feature_show
+ post 'features/:id', :action => 'features#update', :constraints => {:id => /.*[^(\/edit)]/},
+ :as => :feature_update
+ resources :features do
get 'statistic', :on => :collection
member do
match 'rename'
match 'move'
match 'delete'
end
end
- get 'assets/:path', "assets#get", :constraints => {:path => /.*/}
end
+ match "documentation/assets/:path", :controller => "documentation/assets", :action => "get", :constraints => {:path => /.*/}
end
end

0 comments on commit 34c5be7

Please sign in to comment.
Something went wrong with that request. Please try again.