@isratrade you need to return a different hash here instead of `@settings`, e.g.

    render :json => {"errors" => @setting.errors.full_messages}, :status => :unprocessable_entity