I want to write a custom validation in Rails 3, but following this example I get:
\'ActiveModel::DeprecatedErrorMethods.add_to_base\' call is deprecated in Rails
For me this "hack" worked best:
instance.errors.add("", "Msg")
When I tried to specify "base" as the first argument, the word base kept getting inserted into my validation messages.
"base"