Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:2081866
1 2 3 4 5 6 7 8 9 10 11 12
International::Application.routes.draw do
scope '(:locale)' do
match 'locations/' => 'locations#index', :as => :locations, :via => [:get]
match "locations" => 'locations#create', :via => [:post]
match 'locations/new' => 'locations#new', :as => :new_location
match 'locations/:id/edit' => 'locations#edit', :as => :edit_location
match "locations/(:id)" => 'locations#show', :as => :location, :via => [:get]
match "locations/(:id)" => 'locations#update', :via => [:put]
match "locations/(:id)" => 'locations#destroy', :via => [:delete]
root :to => 'locations#index'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.