Skip to content

Instantly share code, notes, and snippets.

@codabrink
Created July 4, 2011 15:06
Show Gist options
  • Save codabrink/1063454 to your computer and use it in GitHub Desktop.
Save codabrink/1063454 to your computer and use it in GitHub Desktop.
Market::Application.routes.draw do
root :to => "home#index"
match ':device_type/:controller(/:action(/:id(.:format)))'
devise_for :users
resources :users
resources :merchants do
resources :merchant_items
end
resources :cities
resources :states do
collection do
get 'get_merchant_cities'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment