def destroy
      @channel = Channel.find(params[:id])
      @channel.destroy
  
      respond_to do |format|
        format.html { redirect_to channels_url }
        format.json { head :no_content }
      end
    end
def destroy
      @channel = Channel.find(params[:id])
      @channel.destroy
  
      respond_to do |format|
        format.html { redirect_to channels_url }
        format.json { head :no_content }
      end
    end
DELETE /channels/1
 DELETE /channels/1.json