def destroy
      @news = News.find(params[:id])
      category = @news.category
      @news.destroy
  
      respond_to do |format|
        format.html { redirect_to category_news_index_path(category), notice: 'News was successfully deleted.' }
        format.json { head :no_content }
      end
    end
def destroy
      @news = News.find(params[:id])
      category = @news.category
      @news.destroy
  
      respond_to do |format|
        format.html { redirect_to category_news_index_path(category), notice: 'News was successfully deleted.' }
        format.json { head :no_content }
      end
    end
DELETE /news/1
 DELETE /news/1.json