After having watched Ryan\'s excellent Railcast Simple OmniAuth, I\'ve managed to implement authentication in my app.
Everything is working fine, but in my view I have l
Add this to your routes.rb
routes.rb
get "/auth/:provider", to: lambda{ |env| [404, {}, ["Not Found"]] }, as: :oauth
Now you can use oauth_path url helper to generate urls.
oauth_path
Eg. oauth_path(:facebook) # => /auth/facebook
oauth_path(:facebook) # => /auth/facebook