ruby on rails 3 - Railcasts: #241 Simple Omniauth, routing error for "/auth/twitter" -


hi following railcasts: #241 simple omniauth tutorial can let users log in sample application using omniauth-twitter gem, getting routing error when entering /auth/twitter stage of tutorial.

what have added after few online searches :strategy_class => omniauth::strategies::twitter omniauth.rb file. same problem, when run rake route following routes:

              /auth/:provider/callback(.:format) sessions#create 

auth_failure /auth/failure(.:format) :controller#:action

which guess mean contacting omniauth-twitter gem still can't /auth/twitter work.

what think need do: think need following show in rake routes. omniauth_authorize get|post /auth/:provider(.:format) /omniauth_callbacks

any appreciated. thank in advance

mark.

for has similar problem, had addition space @ end of omniauth.rb file ( i.e. omniauth.rb(space) ) rails didn't recognise it. difficult see works now.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -