Errors.add adds "is invalid" if validation fails

Rails, I have problem.

I am validating fields of a class, if validation fails i use the
method error.add “Say something” , but when I test my form by giving a
invalid entry, I get error output as “Say something is invalid” and
not as “Say something”. I really dont know where from this “is
invalid” pops in. Any help?

Thanks in advance

Karthikeyan A K

tru this and reply:
errors.add(:field, ‘Say something’)
errors.add_to_base(‘Say something’)

On Fri, Jan 29, 2010 at 3:09 PM, Karthikeyan [email protected]

Karthikeyan A K

You received this message because you are subscribed to the Google G. “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at

Rajeev sharma

Karthikeyan A K

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