Password length validation error message [Rails 3 - Mongoid - Devise 1.2]

808 views
Skip to first unread message

kadoudal

unread,
Jan 6, 2011, 6:00:48 AM1/6/11
to Devise
I defined config.password_length = 6..20 in my Devise setup , and my
user model is :validatable

Trying to enter a new password with a shorter length ( 5 characters)
during the edit registration process, I get obviously an error, but
the count is not given in the message : here is the displayed error

-----
Password is too short (minimum is {{count}} characters)

I am running Rails 3 + mongoid .....

In my User model, I have :
require 'active_model'
include ActiveModel::Validations

do I miss anything else ?

thanks for your suggestions

Eric Harris-Braun

unread,
Jan 7, 2011, 12:22:23 AM1/7/11
to plataforma...@googlegroups.com
I think you might be running into the problem where your i18n gem got bumped to 0.5.0 but rails 3 requires 0.4.2.  Just uninstall the gem, and the run bundle install again.  That worked for me with a similar appearance of {{x}} in an error message

Reply all
Reply to author
Forward
0 new messages