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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:15:15+00:00 2026-05-20T10:15:15+00:00

I rails3.0.4 and devise installed with following users table create_table users, :force => true

  • 0

I rails3.0.4 and devise installed with following users table

create_table "users", :force => true do |t|
    t.string   "login"
    t.string   "email"
    t.string   "crypted_password",         :null => false
    t.string   "password_salt",            :null => false
    t.string   "persistence_token",        :null => false
    t.string   "single_access_token",      :null => false
    t.string   "perishable_token",         :null => false
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "database_authenticatable", :null => false
    t.string   "recoverable"
    t.string   "rememberable"
    t.string   "trackable"
    t.string   "reset_password_token"
  end

The users table was not created by devise but I added the necessary
columns in migration.
And following settings in config/initializers/devise.rb

config.authentication_keys = [ :email]

But every time I try to sign up as a new user it throws:

  2 errors prohibited this user from being saved:
  Login is too short (minimum is 3 characters)
  Login should use only letters, numbers, spaces, and .-_@ please.

Any ideas why it could happen?

  • 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-20T10:15:16+00:00Added an answer on May 20, 2026 at 10:15 am

    Yes, the login is too short and/or contains the wrong characters 🙂
    You enabled the devise built-in validations, and that’s what they validate. To use your own validations remove :validatable from your devise inclusion in app/models/user.rb

    If you’re interested, the validation used by devise is defined in lib/devise/models/validatable.rb in the devise gem.

    Should the validation not be the problem you’ll have to show the log of a user creation request, so that we can see what parameters are submitted.

    EDIT: Oh I see, I misread – it’s about “login”. Well, see comments below.

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

Sidebar

Related Questions

I'm using rails 2.3.5 and devise 1.0.6. I'm having users confirm account's with email.
Following the README documentation, I installed Devise into an existing Rails 3 application. However,
is there a full setup guide for mongo_mapper, haml, rails3 and devise, for the
I have use devise_openid_authenticatable to support OpenID with devise in rails3 beta4. But when
I've recently just added Devise to my first Rails3 app, and I'm having a
Application-Stack: Rails3, CanCan, Devise, Shoulda I've got some nested Resources and want to test
I'm using Rails 3 with devise. I have a table books which has a
I have a Rails application for which I use devise to authenticate my users
rails 3 newbie, using Devise for auth... I want to create the following models:
I've installed Devise for my Rails app (3.0.1) and it's mostly working. I just

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.