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