I have in my Person model a attribute named "hash" which is a hash of a
password and a salt.
When a user want to create a account of update it, he just have to
specify its password in a password virtual attribute. To do so, I use
# in model
class Person < ActiveRecord::Base
validates_length_of :password, :within => 6..40
# in view
<p>Password <%= f.password_field :password %></p>
But when I try to create a account for testing, I get an error message
from the model that said my password is so short (less then 6 chars)...
even if my password got more chars. I don't understand why.
Thanks for any help.