maxko87
maxko87

Reputation: 2940

Easiest way to make Rails RESTful routes for this setup

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

Answers (1)

wizztjh
wizztjh

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

Related Questions