I’m trying to implement Omniauth with my Rails 3 app. I followed the tutorial from the Railscast episod 205, but can’t get it to work. When I call the ‘/auth/twitter’ (it doesn’t work with any provider) Rails complains it can’t find the appropriate route (it tries to load my default route).
I added omniauth.rb under config/initializers/, put gem 'omniauth' in my Gemfile, and ran bundle install.
I’m not sure how to debug this problem nor what information to provide to help understand the problem.
After some research I found a solution. I added the following to my routes.rb file:
and to my authentications controller:
Not sure why I had to do that, but it’s working…