Last active
December 28, 2015 17:38
Revisions
-
mikeric revised this gist
Nov 18, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,6 @@ resources :events do member do get :schedule get '*params', :to => :show end end -
mikeric created this gist
Nov 18, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ # 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 '*', :to => :show end end