Delete in table
This commit is contained in:
@@ -60,7 +60,7 @@ class Settings::TablesController < ApplicationController
|
|||||||
def destroy
|
def destroy
|
||||||
@settings_table.destroy
|
@settings_table.destroy
|
||||||
flash[:notice] = 'Table was successfully destroyed.'
|
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|
|
# respond_to do |format|
|
||||||
# format.html { redirect_to settings_zone_path(@zone), notice: 'Table was successfully destroyed.' }
|
# format.html { redirect_to settings_zone_path(@zone), notice: 'Table was successfully destroyed.' }
|
||||||
# format.json { head :no_content }
|
# format.json { head :no_content }
|
||||||
|
|||||||
Reference in New Issue
Block a user