Try using application/json-patch+json content type with Rails API