Last active
December 28, 2015 17:38
-
-
Save mikeric/7536898 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
# the following works as intended | |
resources :events do | |
member do | |
get :schedule | |
end | |
end | |
match '/events/:id/*params' => 'events#show' | |
# would be nice to accomplish the same thing using resource routing methods instead of an | |
# explicit call to #match. pseudo code below. | |
resources :events do | |
member do | |
get :schedule | |
get '*params', :to => :show | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment