Hello,
this is part of lib/active_resource/validations.rb
def save_with_validation save_without_validation true rescue ResourceInvalid => error case error.response['Content-Type'] when 'application/xml' errors.from_xml(error.response.body) when 'application/json' errors.from_json(error.response.body) end false end
But when Content-Type is "application/json; charset=utf-8" no one part of case statement executed.