Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rails3 routes

  • Loading branch information...
commit 6d3adf9d66691517f411e389d68b939e1d483d55 1 parent 3ebf46c
@cover authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 config/routes.rb
View
13 config/routes.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.