Sunday, October 7, 2012

[Rails] routing issue, matching a param as action

I have the following routes :

>> match '/auth/:provider/callback', to: 'omniauth_callbacks#create'

I can test the :provider in the create action ..

is there any way to directly match to an action with the :provider
name ?

>> match '/auth/:provider/callback', to: 'omniauth_callbacks#(:provider)' ...

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate