Permalink
Browse files

rails3 routes

  • Loading branch information...
1 parent 67bdf93 commit 90f8c6a933b2fc8c27ea32154b30afeda6f6c1ee Fabio committed with Feb 4, 2011
Showing with 9 additions and 4 deletions.
  1. +9 −4 config/routes.rb
View
@@ -1,7 +1,12 @@
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
+ namespace :tolk do
+ root :to => 'locales#index'
+ resources :locales do
+ member do
+ get :all
+ get :updated
+ end
+ end
+ resource :search
end
end

0 comments on commit 90f8c6a

Please sign in to comment.