Problem with Routes using Devise and Omniauth
问题 I am trying to get OAuth and Devise working together but I get Controller::RoutingError (No route matches "/users/auth/facebook/callback"): when trying to auth via Facebook. Weirdly, the problem doesn't happen with Google Apps. (same callback route). Any ideas? callback_controller: class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController def facebook # You need to implement the method below in your model @user = User.find_for_facebook_oauth(env["omniauth.auth"], current