kadoudal
unread,Jan 6, 2011, 6:00:48 AM1/6/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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