Rails3 validator - has no error message?

Hey

So I can create validations like this:

validates :title, :presence => true, :uniqueness => true, :length =>
{ :maximum => 100 }

BUT I cannot use “:message=>‘blah blah’” … ?

I am stuck with the default “is invalid” error message?

Does anyone have any insite into this?

cheers

Maybe I’m meant to wrap the validation in something?

On Feb 20, 8:32 pm, “[email protected][email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs