Errors.add_to_base

Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel:

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

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

Awesome - perfect. Thanks!

Best Wishes,
Peter

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