title: Problem with Routes using Devise and Omniauth
body: <p>I am trying to get OAuth and Devise working together but I get <code>Controller::RoutingError (No route matches "/users/auth/facebook/callback"):</code> when trying to auth via Facebook.</p>
  
  <p>Weirdly, the problem doesn't happen with Google Apps. (same callback route).</p>
  
  <p>Any ideas?</p>
  
  <p>callback_controller:</p>
  
  <pre><code>class Users::OmniauthCallbacksController &lt; Devise::OmniauthCallbacksController
  
    def facebook
      # You need to implement the method below in your model
      @user = User.find_for_facebook_oauth(env["omniauth.auth"], current_user)
  
      if @user.persisted?
        flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind =&gt; "Facebook"
        sign_in_and_redirect @user, :event =&gt; :authentication
      else
        session["devise.facebook_data"] = env["omniauth.auth"]
        redirect_to new_user_registration_url
      end
    end
  
    def google_apps
      @user = User.find_for_google_apps_oauth(env["omniauth.auth"], current_user)
  
      if @user.persisted?
        flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind =&gt; "Google Apps"
        sign_in_and_redirect @user, :event =&gt; :authentication
      else
        session["devise.google_apps_data"] = env["omniauth.auth"]
        redirect_to new_user_registration_url
      end
    end
  
    def passthru
      render :file =&gt; "#{Rails.root}/public/404.html", :status =&gt; 404, :layout =&gt; false
    end
  
  end
  </code></pre>
  
  <p>routes.rb:</p>
  
  <pre><code>devise_for :users, :controllers =&gt; { :omniauth_callbacks =&gt; "users/omniauth_callbacks" } do
    get '/users/auth/:provider' =&gt; 'users/omniauth_callbacks#passthru'
  end
  </code></pre>
  
  <p>Why would the <code>:provider =&gt; "facebook"</code> trigger a RoutingError, but not <code>:provider =&gt; "google_apps"</code>?</p>