public
Created

  • Download Gist
gistfile1.rb
Ruby
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/new' => 'locations#new', :as => :new_location
match "locations" => 'locations#create', :as => :locations, :via => [:post]
match "locations/(:id)" => 'locations#show', :as => :location, :via => [:get]
match 'locations/:id/edit' => 'locations#edit', :as => :edit_location
match "locations/(:id)" => 'locations#update', :as => :location, :via => [:put]
match "locations/(:id)" => 'locations#destroy', :as => :location, :via => [:delete]
root :to => 'locations#index'
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.