errors.add(:base,"your text")
perhaps?

On Mon, Jun 13, 2011 at 3:08 PM, Peter Bell <[email protected]> wrote:

> Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel:
> http://api.rubyonrails.org/classes/ActiveModel/Errors.html
>
> I need to add an error, but I don't want to add it to a specific property
> (I need you to fill out either a source_person or source_url, so I don't
> want to prepend the message with the name of either of the fields).
>
> Any idea how I might be able to do that now that we don't have add_to_base?
>
> Best Wishes,
> Peter
>
> --
> You received this message because you are subscribed to the Google Groups
> "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.
>

-- 
You received this message because you are subscribed to the Google Groups "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.

Reply via email to