Permalink
Browse files

Modified routes as needed to work like new rails engine

  • Loading branch information...
1 parent 3ead4c1 commit c5372881a7689f6e392db17bdfde41f5c89b61b9 @hermesdt committed Jan 23, 2012
Showing with 14 additions and 6 deletions.
  1. +14 −6 config/routes.rb
View
@@ -1,7 +1,15 @@
-Rails.application.routes.draw do |map|
- map.namespace('tolk') do |tolk|
- tolk.root :controller => 'locales'
- tolk.resources :locales, :member => {:all => :get, :updated => :get}
- tolk.resource :search
- end
+Tolk::Engine.routes.draw do
+ #namespace('tolk') do
+ root :to => "locales#index"
+
+ resources :locales do
+ member do
+ get "all"
+ get "updated"
+ end
+ end
+ :w
+
+ resources :search
+ #end
end

0 comments on commit c537288

Please sign in to comment.