Skip to content

Instantly share code, notes, and snippets.

@tmking
Created July 23, 2009 16:06
Show Gist options
  • Save tmking/153131 to your computer and use it in GitHub Desktop.
Save tmking/153131 to your computer and use it in GitHub Desktop.
ActionController::Routing::Routes.draw do |map|
map.resources :events
map.resources :contacts
map.connect 'pianofinder/:action', :controller => 'pianofinder'
map.connect 'stores/:action', :controller => 'store'
map.connect 'events', :controller => 'events'
map.connect 'institutional', :controller => 'institutional'
map.connect 'contact/', :controller => 'contact'
map.connect 'contact/:form_name/:id', :controller => 'contact'
map.connect ':action', :controller => 'main'
map.connect 'education/:action', :controller => 'main'
map.connect 'brands/:id', :controller => 'product'
map.connect 'brands/:id/:group', :controller => 'product', :action => 'show'
map.root :controller => 'main'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment