Delete in table
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user