Created
March 28, 2019 12:17
-
-
Save MaryKuz/398f06d3e420ea8c3255f12aef12fb06 to your computer and use it in GitHub Desktop.
Add the error ActiveModel::StrictValidationFailed in rescue_from
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rescue_from ActiveRecord::RecordInvalid, ActiveModel::StrictValidationFailed do | |
render :errors, status: :unprocessable_entity | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment