Created
March 29, 2011 12:10
-
-
Save jamesbrink/892245 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloudMD::Application.routes.draw do | |
resources :users | |
resources :patients do | |
resources :addresses | |
resources :phones | |
end | |
match 'user_sessions/authenticated', :controller=>'user_sessions', :action=>'authenticated', :via => 'get' | |
match 'patients/search', :controller=>'patients',:action=>'search',:via=>'post' | |
match 'users/valid', :controller=>'users',:action=>'valid',:via=>'post' | |
resources :user_sessions | |
match 'login' => "user_sessions#new", :as => :login | |
match 'logout' => "user_sessions#destroy", :as => :logout | |
match 'home' => "home#index" | |
root :to => 'home#index' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment