Skip to content

Instantly share code, notes, and snippets.

@mikeric
Last active December 28, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeric/7536898 to your computer and use it in GitHub Desktop.
Save mikeric/7536898 to your computer and use it in GitHub Desktop.
# 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