# Validates in rails 3 is fuzzy?

**URL:** <https://www.ruby-forum.com/t/validates-in-rails-3-is-fuzzy/195452>\
**Category:** Rails\
**Created:** [September 23, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/validates-in-rails-3-is-fuzzy/195452 "2010-09-23T12:25:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 23, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/validates-in-rails-3-is-fuzzy/195452/1 "2010-09-23T12:25:27Z")

</div>

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 😃

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 23, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/validates-in-rails-3-is-fuzzy/195452/2 "2010-09-23T12:26:17Z")

</div>

just in case…

i try to print out.

\<%= @user.errors.to\_s%\>

i only get.

passwordpassword\_confirmation

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 23, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/validates-in-rails-3-is-fuzzy/195452/3 "2010-09-23T14:05:03Z")

</div>

On Sep 23, 11:26 am, Jamal S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> just in case…
> 
> i try to print out.
> 
> \<%= @user.errors.to\_s%\>
> 
> i only get.

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
