title: Delete Action seems not working in rails 3.2.1
body: <p>I have this problem . I am doing a program in Ruby on Rails 3.2.1 
  I use scaffold</p>
  
  <pre><code> 1)rails generate scaffold Article name:string description:text
   2)rake db:migrate
   3)rails server
  </code></pre>
  
  <p>When I click in destroy  the javascript cartel does not appear and the page is directed to show method
  Can you help me ?</p>
  
  <p>localhost:3000/articles</p>
  
  <pre><code>Listing articles
  
  Title   Body            
  Prueba numero 1 esta articula crea el articulo 1    Show    Edit    Destroy
  titulo 2    este es el titulo 2                     Show    Edit    Destroy
  
  New Article
  </code></pre>
  
  <p>To make click in Destroy the Javascript cartel no appear and the page is redirected to</p>
  
  <p>localhost:3000/articles/1</p>
  
  <pre><code>Title: Prueba numero 1
  
  Body: esta articula crea el articulo 1
  
  Edit | Back
  </code></pre>
  
  <p>Articles Controller</p>
  
  <pre><code>class ArticlesController &lt; ApplicationController   # GET /articles   #
  
  GET /articles.json   
  def index
       @articles = Article.all
  
       respond_to do |format|
         format.html # index.html.erb
         format.json { render json: @articles }
       end   
     end
  
     # GET /articles/1   # GET /articles/1.json  
   def show
       @article = Article.find(params[:id])
  
       respond_to do |format|
         format.html # show.html.erb
         format.json { render json: @article }
       end   
     end
  
     # GET /articles/new   # GET /articles/new.json  
   def new
       @article = Article.new
  
       respond_to do |format|
         format.html # new.html.erb
         format.json { render json: @article }
       end   
    end
  
     # GET /articles/1/edit   
    def edit
       @article = Article.find(params[:id])  
    end
  
     # POST /articles   # POST /articles.json   
    def create
       @article = Article.new(params[:article])
  
       respond_to do |format|
         if @article.save
           format.html { redirect_to @article, notice: 'Article was successfully created.' }
           format.json { render json: @article, status: :created, location: @article }
         else
           format.html { render action: "new" }
           format.json { render json: @article.errors, status: :unprocessable_entity }
         end
       end   
      end
  
     # PUT /articles/1   # PUT /articles/1.json   
     def update
       @article = Article.find(params[:id])
  
       respond_to do |format|
         if @article.update_attributes(params[:article])
           format.html { redirect_to @article, notice: 'Article was successfully updated.' }
           format.json { head :no_content }
         else
           format.html { render action: "edit" }
           format.json { render json: @article.errors, status: :unprocessable_entity }
         end
       end   
     end
  
     # DELETE /articles/1   # DELETE /articles/1.json   
     def destroy
       @article = Article.find(params[:id])
       @article.destroy
  
       respond_to do |format|
         format.html { redirect_to articles_url }
         format.json { head :no_content }
       end   
      end 
    end
  </code></pre>
  
  <p>This is the file  index.html.erb</p>
  
  <pre><code>    &lt;h1&gt;Listing articles&lt;/h1&gt;
  
      &lt;table&gt;
        &lt;tr&gt;
          &lt;th&gt;Title&lt;/th&gt;
          &lt;th&gt;Body&lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
        &lt;/tr&gt;
  
      &lt;% @articles.each do |article| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= article.title %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= article.body %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Show', article %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Edit', edit_article_path(article) %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Destroy', article, confirm: 'Are you sure?', method: :delete %&gt;&lt;/td&gt;
  
        &lt;/tr&gt;
      &lt;% end %&gt;
      &lt;/table&gt;
  
      &lt;br /&gt;
  
      &lt;%= link_to 'New Article', new_article_path %&gt;
  
   application.html.erb Layout
  
      &lt;!DOCTYPE html&gt;
      &lt;html&gt;
      &lt;head&gt;
        &lt;title&gt;Blog&lt;/title&gt;
        &lt;%= stylesheet_link_tag    "application", :media =&gt; "all" %&gt;
        &lt;%= javascript_include_tag "application" %&gt;
        &lt;%= csrf_meta_tags %&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
      &lt;%= yield %&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>