Tuesday, 17 September 2013

Connect to an action in a namespaced controller that isn't a collection or member

Connect to an action in a namespaced controller that isn't a collection or
member

I want to have a url like this:
/admin/providers/connect
that a 3rd party can post to. It isn't a restful resource. Its just a url.
I'd like it to map to the connect method in my providers controller in the
admin namespace.
How can i do that?
here is what i have:
namespace :admin do
get '/admin/providers/connect', to: 'providers#connect'
end
which is just redirecting to the dashboard.

No comments:

Post a Comment