title: Data not deleted from the sqlite3 table
body: <p>I am new in ruby. I want to delete record. But unable to delete. Please check my code - </p>
  
  <p><strong>ruby_win_sources/index.html.erb</strong></p>
  
  <pre><code>&lt;table border="1" cellpadding="1" cellspacing="1" width="100%"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;Author&lt;/th&gt;
        &lt;th&gt;Url&lt;/th&gt;
        &lt;th colspan="3"&gt;Action&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  
    &lt;tbody&gt;
      &lt;% @ruby_win_sources.each do |ruby_win_source| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= ruby_win_source.name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= ruby_win_source.author %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= ruby_win_source.url %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Show', ruby_win_source %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Edit', edit_ruby_win_source_path(ruby_win_source) %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Destroy', ruby_win_source, method: :destroy, data: { confirm: 'Are you sure?' } %&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;% end %&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>ruby_win_sources_controller.rb</strong></p>
  
  <pre><code>class RubyWinSourcesController &lt; ApplicationController
    before_action :set_ruby_win_source, only: [:show, :edit, :update, :destroy]
  
    # GET /ruby_win_sources
    # GET /ruby_win_sources.json
    def index
      @ruby_win_sources = RubyWinSource.all
    end
  
    # GET /ruby_win_sources/1
    # GET /ruby_win_sources/1.json
    def show
    end
  
    # GET /ruby_win_sources/new
    def new
      @ruby_win_source = RubyWinSource.new
    end
  
    # GET /ruby_win_sources/1/edit
    def edit
    end
  
    # POST /ruby_win_sources
    # POST /ruby_win_sources.json
    def create
      @ruby_win_source = RubyWinSource.new(ruby_win_source_params)
  
      respond_to do |format|
        if @ruby_win_source.save
          format.html { redirect_to @ruby_win_source, notice: 'Ruby win source was successfully created.' }
          format.json { render :show, status: :created, location: @ruby_win_source }
        else
          format.html { render :new }
          format.json { render json: @ruby_win_source.errors, status: :unprocessable_entity }
        end
      end
    end
  
    # PATCH/PUT /ruby_win_sources/1
    # PATCH/PUT /ruby_win_sources/1.json
    def update
      respond_to do |format|
        if @ruby_win_source.update(ruby_win_source_params)
          format.html { redirect_to @ruby_win_source, notice: 'Ruby win source was successfully updated.' }
          format.json { render :show, status: :ok, location: @ruby_win_source }
        else
          format.html { render :edit }
          format.json { render json: @ruby_win_source.errors, status: :unprocessable_entity }
        end
      end
    end
  
    # DELETE /ruby_win_sources/1
    # DELETE /ruby_win_sources/1.json
    def destroy
      @ruby_win_source.destroy
      respond_to do |format|
        format.html { redirect_to ruby_win_sources_url, notice: 'Ruby win source was successfully destroyed.' }
        format.json { head :no_content }
      end
    end
  
    private
      # Use callbacks to share common setup or constraints between actions.
      def set_ruby_win_source
        @ruby_win_source = RubyWinSource.find(params[:id])
      end
  
      # Never trust parameters from the scary internet, only allow the white list through.
      def ruby_win_source_params
        params.require(:ruby_win_source).permit(:name, :author, :url)
      end
  end
  </code></pre>
  
  <p>Delete confirm box not opening.</p>
  
  <p>Please help me</p>
  
  <p>Edit - 
  <strong>routes.rb</strong></p>
  
  <pre><code>Rails.application.routes.draw do
    resources :ruby_win_sources
  end
  </code></pre>