title: Unknown action, Ruby on Rails 4 Beginner, destroy action is unknown
body: <p>I get " The action  could not be found for ArticleController " After pressing "delete It", on my delete page. I think it can not find destroy function! What is missing here?</p>
  
  <p>Controller:</p>
  
  <pre><code>class ArticleController &lt; ApplicationController
  
  def index
    @article= Article.all
  end
  
  def show
    @article= Article.find(params[:id])
  end
  
  def new
   @article= Article.new
  end
  
  def create
    @article= Article.new(user)
  
    if @article.save
        redirect_to(:action =&gt; 'index')
    else
        redirect_to(:action =&gt; 'index')
    end
  end
  
  def delete
    @article= Article.find(params[:id])
  end
  
  def destroy
    article.find(params[:id]).destroy
    redirect_to(:action =&gt; 'index')
  end
  
  private
    def user
    params.require(:article).permit(:title, :text)
    end
  end
  </code></pre>
  
  <p>The routes.rb</p>
  
  <pre><code> Rails.application.routes.draw do
  
    resources :article 
     match ':controller(/:action(/:id))', :via =&gt; [:get, :post]
    #..
  </code></pre>
  
  <p>my delete.html.erb</p>
  
  <pre><code>  &lt;h2&gt;Delete&lt;/h2&gt;
  
    &lt;%= form_for :article, :url =&gt; url_for(:action =&gt; 'destroy', :id =&gt; @article) do |f| %&gt;
      &lt;%= @article.title %&gt;
      &lt;%= submit_tag("Delete It") %&gt;
    &lt;% end %&gt;
  </code></pre>