Reputation: 2940
I want to have the following routes resolve:
splunk/ocd/:some_number
splunk/ord/:some_number
I want these to be handled by the ocd
, ord
functions in SplunkController
. What's the easiest way to create these routes?
Upvotes: 1
Views: 55
Reputation: 7041
This should do it, since it is not following crud.
get 'splunk/ocd/:some_number' => "splunk#ocd", as: 'splunk_ocd'
get 'splunk/ord/:some_number' => "splunk#ord", as: 'splunk_ord'
Upvotes: 1