Droute, druti, good day.
A ruby 2.1.4, 5 rails, ActiveAdmin 2.0.0
In ActiveAdmin has colback:
ActiveAdmin.register Post do
before_save do |post|
post.errors.add :base, "You can't post this shit!"
The idea in the errors should be appended error and the entry should be prekrastno.
In fact we have the following - "You can't post this shit!" in a mantra be added, but the entry still occurs.
Good people, where will kopatsya to keep this validation in the model?