title: Rails Destroy Record link doesn't do anything
body: <p>I'm attempting to destroy a nested record, the destroy button appears to work and redirect back to the above models page but the record still shows up there. </p>
  
  <p><strong>Here is my partial for the nested record:</strong> </p>
  
  <pre><code>&lt;p&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;%= time_delta.start %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= time_delta.length %&gt;&lt;/td&gt;
          &lt;td&gt;
              &lt;%=
                  link_to 'Destroy Time Delta',
                  [time_delta.stock, time_delta],
                  method: :delete,
                  data: { confirm: 'Are you sure?' }
              %&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p><strong>Heres the show for the above class</strong> </p>
  
  <pre><code>&lt;!-- Shows the stock--&gt;
  &lt;h1&gt; Stock &lt;/h1&gt;
  &lt;table&gt; 
      &lt;tr&gt;
          &lt;th&gt;Stock&lt;/th&gt;
          &lt;th&gt;Hashtag&lt;/th&gt;        
      &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;%= @stock.name %&gt;&lt;/td&gt;
              &lt;td&gt;&lt;%= @stock.hashtag %&gt;&lt;/td&gt;
          &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;!-- Shows the Time Detlas--&gt;
  &lt;h3&gt;TimeDeltas: &lt;/h2&gt;
  &lt;%= render @stock.time_deltas %&gt;
  
  &lt;!-- Creates a Time Delta--&gt;
  &lt;h3&gt;Add a TimeDelta:&lt;/h2&gt;
  &lt;%= render "time_deltas/form" %&gt;
  
  &lt;%= link_to 'Back', stocks_path%&gt;
  &lt;%= link_to 'Edit', edit_stock_path(@stock)%&gt;
  </code></pre>
  
  <p><strong>Here is the controller for the Time Delta (The nested class)</strong></p>
  
  <pre><code>class TimeDeltasController &lt; ApplicationController
  
    def create
      @stock = Stock.find(params[:stock_id])
      @time_delta = @stock.time_deltas.create(time_delta_params)
      redirect_to stock_path(@stock)
    end
  
    def destroy
      @stock = Stock.find(params[:stock_id]) 
      @time_delta = @stock.time_deltas.create(params[:time_delta_id])
  
      # @time_delta = @stock.time_deltas.create(time_delta_params)
      @time_delta.destroy
      redirect_to stock_path(@stock)
    end
  
    private 
      def time_delta_params
        params.require(:time_delta).permit(:start, :length)
      end
  end
  </code></pre>