Created
July 19, 2012 21:53
-
-
Save dladowitz/3147109 to your computer and use it in GitHub Desktop.
Custom Routes
This file contains 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
RouterTester::Application.routes.draw do | |
resources :companies do | |
member do | |
put 'location' | |
end | |
end | |
resources :managers do | |
member do | |
get 'generate_statistics' | |
end | |
end | |
resources :employees do | |
member do | |
put 'promote' | |
get 'fire' | |
end | |
collection do | |
put 'show_all' | |
end | |
resources :evaluations do | |
resources :scores | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment