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 started a clean rails app, installed and migrated the devise gem as well
I'm very new to Rails and devise so here goes... I've installed devise and
I have installed a gem on my Rails application (devise). After I installed the
I'm working to allow users to FB Connect into my app for authentcation. My
Whenever I put config.stretches = 20 in config/initializers/devise.rb , the server times out on
Rails uses the concept of migrations to deal with model changes using the ActiveRecord
Rails comes with a handy session hash into which we can cram stuff to
Rails comes with RESTful resources out of the box, but do you use those
Rails introduced some core extensions to Ruby like 3.days.from_now which returns, as you'd expect
Rails is a great platform, but it just doesn't have the history that Perl

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.