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.

Revisions

  1. tmking created this gist Jul 23, 2009.
    19 changes: 19 additions & 0 deletions routes.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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