Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7550407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:12:17+00:00 2026-05-30T10:12:17+00:00

Trying to migrate my app from Rails 3.0 to 3.2 , and as part

  • 0

Trying to migrate my app from Rails 3.0 to 3.2, and as part of this I’m also updating Devise gem. Turned out that new Devise requires new OmniAuth gem. I have Facebook authorization configured with OmniAuth. After reading migration guide I’ve added also omniauth-facebook gem and configured it in devise.rb.

Now I’m getting this error:

ActionView::Template::Error (undefined method
`user_omniauth_authorize_path’ for
#<#:0x00000003b01e88>)

I was using this path for the Facebook login button. What should I use now?

User model contains this (user.rb):

 # Include default devise modules. Others available are:
  # :token_authenticatable, :confirmable, :lockable and :timeoutable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable,
         :omniauthable

Full server log:

Started GET "/" for 127.0.0.1 at 2012-02-22 10:39:27 +0200
Processing by PagesController#guardian as HTML
[paperclip] Duplicate URL for photo with /system/:attachment/:id/:style/:filename. This will clash with attachment defined in Asset class
  Rendered pages/guardian.html.erb within layouts/application (955.6ms)
Completed 500 Internal Server Error in 1245ms

ActionView::Template::Error (undefined method `user_omniauth_authorize_path' for #<#<Class:0x00000003b213f0>:0x00000003b01e88>):
    30:     </p>
    31:             </td>
    32:             <td>
    33:             <%= link_to "Login with Facebook", user_omniauth_authorize_path(:facebook), :class => "login_with_facebook_button" %>
    34:             </td>
    35:         </tr>
    36:     </table>
      app/views/pages/guardian.html.erb:33:in `_app_views_pages_guardian_html_erb___1979224720320394612_27892940'

Update: Ok, I managed to get resolved this path issue. Now when clicking on Facebook login button, I’m getting this:

Started GET "/users/auth/facebook" for 127.0.0.1 at 2012-02-23 16:02:01 +0200

NoMethodError (undefined method `include?' for nil:NilClass):
  omniauth (1.0.2) lib/omniauth/strategy.rb:165:in `call!'
  omniauth (1.0.2) lib/omniauth/strategy.rb:148:in `call'
  warden (1.1.1) lib/warden/manager.rb:35:in `block in call'
  warden (1.1.1) lib/warden/manager.rb:34:in `catch'
  warden (1.1.1) lib/warden/manager.rb:34:in `call'

This all is a bit confusing. The path problem resolved after I specified the :facebook params accodring to this tutorial: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview. Now I also noticed that I’m missing omniauth.rb from config/initializers folder, which is mentioned in the omniauth-facebook wiki. I’ve created omniauth.rb with the following content, but still getting the same problem:

Rails.application.config.middleware.use OmniAuth::Builder do
    provider :facebook, ENV['APP_ID'], ENV['APP_SECRET']
  end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:12:19+00:00Added an answer on May 30, 2026 at 10:12 am

    I resolved this issue by running devise generators again. The two files that would need to be verified are: config/routes.rb and models/user.rb

    In the routes.rb file, there will be a duplicate ‘devise_for’ right at the top and the user.rb will have default devise modules, so ‘omniauthable’ will need to be added here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm updating a Rails 1.2.3 app to 3.2.1. I'm trying to figure out how
I'm trying to migrate my application from the old App Engine db to ndb.
I am trying to migrate to Tomcat 7 from Tomcat 6. The app uses
I'm trying to migrate my app from MySql to Postgresql, using Rails3-pre and the
I am trying to migrate my web app from JBoss EAP 5 to AS
I have an old Rails 2.3.8 app using Ruby 1.8.7-p352 that I've been trying
I am trying to setup a Rails app on Heroku using PG, and also
I'm trying to migrate my app from cakephp 2.0 to 2.1. I've been using
I'm trying to deploy my first rails app on Heroku. I was using devise
I am trying to migrate a PHP app from MySQL to SQLite, and some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.