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
Try to use in below format,
errors[:base] << "Your Message"
It wont insert anything before your validation messages.