Delete in table

This commit is contained in:
San Wai Lwin
2018-07-13 14:04:38 +06:30
parent 042aec0121
commit 043a1efb2a

View File

@@ -60,7 +60,7 @@ class Settings::TablesController < ApplicationController
def destroy
@settings_table.destroy
flash[:notice] = 'Table was successfully destroyed.'
render :json => {:status=> "Success", :url => settings_zone_path(@zone) }.to_json
render :json => {:status=> "Success", :url => settings_zones_path(@zone) }.to_json
# respond_to do |format|
# format.html { redirect_to settings_zone_path(@zone), notice: 'Table was successfully destroyed.' }
# format.json { head :no_content }