validates in rails 3 is fuzzy?

Hi,

I'm trying to create "forgot_password" page, but the error is not
showing out on the page.

user.errors[:password] = "must be longere then 5 character"

or

user.errors[:password] << "must be longere then 5 character"

in html.erb

<%= @user.errors[:password]%>

but it's empty? nothing is printed out, even so valid? is false

I'm doing something wrong?

Thanks for any help :smiley:

just in case..

i try to print out.

<%= @user.errors.to_s%>

i only get.

passwordpassword_confirmation

You're going to need to do a little more work in order to get that to
display in a form that is readable by the user, eg iterate over it
with each (or use the error_messages_for helper, now in the
dynamic_form plugin - useful as an example in anycase)

Fred