change ui for delete backend
This commit is contained in:
@@ -57,10 +57,12 @@ class Settings::TaxProfilesController < ApplicationController
|
||||
# DELETE /settings/tax_profiles/1.json
|
||||
def destroy
|
||||
@settings_tax_profile.destroy
|
||||
respond_to do |format|
|
||||
format.html { redirect_to settings_tax_profiles_url, notice: 'Tax profile was successfully destroyed.' }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
flash[:notice] = 'Tax profile was successfully destroyed.'
|
||||
render :json => {:status=> "Success", :url => settings_tax_profiles_url }.to_json
|
||||
# respond_to do |format|
|
||||
# format.html { redirect_to settings_tax_profiles_url, notice: 'Tax profile was successfully destroyed.' }
|
||||
# format.json { head :no_content }
|
||||
# end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user