Why not work out false colback in AA?

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!"
false
end

end

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?
June 5th 19 at 21:39
1 answer
June 5th 19 at 21:41
In rails 5 fixed it and now you can't abort the save by returning false, and using
throw(:abort)
Tried. Received divine uncaught throw :abort.

UncaughtThrowError in Admin::PostsController#create
- Kaleigh_Ha commented on June 5th 19 at 21:44
, they have an open issue on this account - Deon_Stamm66 commented on June 5th 19 at 21:47
yeah , just hang out with the developers. Thank you for participating. - Kaleigh_Ha commented on June 5th 19 at 21:50
please - Deon_Stamm66 commented on June 5th 19 at 21:53

Find more questions by tags Ruby on Rails