title: Help Using Devise with the built-in Omniauth Support
body: <p>I tried to follow <a href="https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview" rel="noreferrer">https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview</a>, but somehow when I look at the generated routes I only see the callback path, and not the authorization path (and indeed I get the error on the view with the user_omniauth_authorize_path link).</p>
  
  <p>I assume it might be a versions issue of OmniAuth and Devise (<a href="https://github.com/intridea/omniauth/issues/closed#issue/201" rel="noreferrer">since after 0.2.0.beta Omniath allows configurable setting, and the routes must be defined</a>). However, when trying to use an older OmniAuth version I get the error "<code>You are using an old OmniAuth version, please ensure 0.2.0.beta or later installed.</code>".</p>
  
  <p>I tried working with Devise's master, 1.2.rc and the the omniauth branch and with both the entire omniauth gem (after 0.2.0.beta) and with 'oa-oauth' but without success.
  I also tried to define the route:</p>
  
  <pre><code>match '/users/auth/:action/', :to =&gt; 'users/omniauth_callbacks#action', :as =&gt; 'user_omniauth_authorize'
  </code></pre>
  
  <p>This helped with the route, but when pressing the link I did get the error that devise cannot find a mapping. Funny enough, changing the controller in the devise_for to be invalid (like adding '/' before the users/omniauth_callbacks) resulted in an error the first time ("Controller name should not start with a slash"), but a small reload actually sent me to facebook and back (but  naturally the callback route was not defined).</p>
  
  <p>I am new to Ruby, and not quite sure where I go from here. Any help will be appreciated.</p>