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 7945635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:55:38+00:00 2026-06-04T00:55:38+00:00

My Rails 3 app is using Devise and I noticed that my users table

  • 0

My Rails 3 app is using Devise and I noticed that my users table was missing it’s authentication_token column. Not sure how it’s been authenticating users up until now, but in either case I’m looking to add the authentication_token column to repeat what was done in this tutorial: http://ariejan.net/2011/03/27/rails-3-devise-uploadify-no-flash-session-hacks. How do I go about adding this in?

Edit

I did notice that in my config/initializers/devise.rb I had this, which I take is an alternative to auth tokens?

# If true, uses the password salt as remember token. This should be turned
# to false if you are not using database authenticatable.
  config.use_salt_as_remember_token = true

Edit 2

I also tried adding the following to my Users model but nothing changed.

devise :database_authenticatable

Here is my current user model:

devise :database_authenticatable, :registerable,
       :recoverable, :rememberable, :trackable, :validatable
  • 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-06-04T00:55:40+00:00Added an answer on June 4, 2026 at 12:55 am

    Token authentication is only used for API style authentication where you receive a JSON response from another application. By default Devise uses email and password authentication, which is what the :database_authenticatable is configuring.

    In order to set your app up this way you can follow either tutorial from the Devise Wiki. Either one of them will point you in the right direction.

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

Sidebar

Related Questions

I am using Rails 3 and Devise to create an app where users arrive
I have a rails app that is using Devise, with a User model, no
I'm using Devise and Rack::SSLEnforcer in a Rails app. When users receive their confirmation
I have an app that is using devise for authentication. Rails 3 on ruby
I am using Devise in my rails app. My Users model is registerable, which
I have a rails 3 app that is currently using Devise for authentication. I
In my application I authenticate users using Devise and I noticed that you can
I am using Devise to authenticate users in my rails app. I have couple
So I am using Devise for user authentication in my rails app. I have
We have a web app running on Rails, using Devise and OmniAuth for user

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.