title: Rails 4 link_to Destroy not working in Getting Started tutorial
body: <p>I am working through the Getting Started tutorial (creating a Blog) and the link_to Destroy is not functioning properly. In the terminal it always interprets it as  #SHOW. </p>
  
  <p>In reading similar issues I have learned that the Delete must be converted to a POST for the browser to interpret it. This doesn't seem to be happening. </p>
  
  <p>I have run into the same problem using Destroy in the Lynda.com Rails course as well, so it leads me to believe it is something in my development environment. I am using Rails 4, Ruby 2.00p274,  MySQL, WEBrick for the HTTP server on a MacBook Pro Lion. </p>
  
  <p>in the terminal session when Destroy is selected:</p>
  
  <pre><code>Started GET "/posts/4" for 127.0.0.1 at 2013-08-09 13:45:20 -0600
  Processing by PostsController#show as HTML
    Parameters: {"id"=&gt;"4"}
    Post Load (0.6ms)  SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1  [["id", "4"]]
    Rendered posts/show.html.erb within layouts/application (0.4ms)
  Completed 200 OK in 13ms (Views: 8.6ms | ActiveRecord: 0.6ms)
  </code></pre>
  
  <p>In the ports-controller.rb:</p>
  
  <pre><code>def destroy
      @post = Post.find(params[:id])
      @post.destroy
  
      redirect_to action: :index
  end
  </code></pre>
  
  <p>In the index.html.erb:</p>
  
  <pre><code>&lt;% @posts.each do |post| %&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;%= post.title %&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%= post.text %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Show', post %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Edit', edit_post_path(post) %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Destroy',  { action: :destroy, id: post.id }, method: :delete, data: { confirm: 'Are you sure?' } %&gt;&lt;/td&gt;
    &lt;/tr&gt;
   &lt;% end %&gt;
  </code></pre>
  
  <p>In the routes.rb</p>
  
  <pre><code>Blog::Application.routes.draw do
     resources :posts do
       resources :comments
     end
    root to: 'welcome#index'
  end
  </code></pre>