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]
wrote:

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 http://groups.google.com/group/rubyonrails-talk?hl=en.


Regards:
Rajeev sharma
+919813270707

Thanks
Karthikeyan A K
9444018524