title: No route matches [DELETE]
body: <p>I don't know what is it happened with my app. I have some controllers that are working perfectly but this one not. </p>
  
  <p>my sylabus_controller.rb</p>
  
  <pre><code>   # encoding: utf-8
      module Admin
        class SylabusController &lt; BaseController
  
  def destroy
        @sylabu = @topic.sylabus.find(params[:sylabus])
        @sylabu.destroy
       redirect_to  admin_course_topic_sylabu_path(@course, @topic), notice: 'Sylabus deleted'
  
      end
  </code></pre>
  
  <p>my /views/admin/sylabus/index.html.rb</p>
  
  <pre><code>&lt;% @sylabu.each do |syla| %&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;%= syla.mupet_code %&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;%= syla.name %&gt;&lt;/td&gt;
  
                &lt;td style="width:155px"&gt;
           &lt;%= link_to '&lt;i class="icon-pencil"&gt;&lt;/i&gt;'.html_safe, edit_admin_course_topic_sylabus_path(@course,
                                                                                                          @topic,
                                                                                                          syla),
                              class: 'btn' %&gt;
                      &lt;%= link_to '&lt;i class="icon-trash icon-white"&gt;&lt;/i&gt;'.html_safe, [:admin, @course, @topic, syla], class: 'btn btn-danger', method: :delete, data: { confirm: 'Are you sure?' } %&gt;
  
                  &lt;%= link_to '&lt;i class="icon-eye-open"&gt;&lt;/i&gt;'.html_safe, [:admin, @course, @topic, syla],
                              class: 'btn' %&gt;
  
                &lt;/td&gt;
              &lt;/tr&gt;
              &lt;% end %&gt;
  </code></pre>
  
  <p>The target web is in the button delete is localhost:3000/admin/courses/1/topics/2/sylabus.8 and with the following error message</p>
  
  <pre><code>Routing Error
  
  No route matches [DELETE] "/admin/courses/1/topics/2/sylabus.8"
  Try running rake routes for more information on available routes.
  </code></pre>
  
  <p>If I execute rake routes from my console</p>
  
  <pre><code>                          POST   /admin/courses/:course_id/topics/:topic_id/sylabus(.:format)                             admin/sylabus#create
   new_admin_course_topic_sylabu GET    /admin/courses/:course_id/topics/:topic_id/sylabus/new(.:format)                         admin/sylabus#new
  edit_admin_course_topic_sylabu GET    /admin/courses/:course_id/topics/:topic_id/sylabus/:id/edit(.:format)                    admin/sylabus#edit
       admin_course_topic_sylabu GET    /admin/courses/:course_id/topics/:topic_id/sylabus/:id(.:format)                         admin/sylabus#show
                                 PUT    /admin/courses/:course_id/topics/:topic_id/sylabus/:id(.:format)                         admin/sylabus#update
                                 DELETE /admin/courses/:course_id/topics/:topic_id/sylabus/:id(.:format)                         admin/sylabus#destroy
  </code></pre>
  
  <p>Sincerely I don't know from the error is coming because it's a copy and paste from other controllers that are working perfectly.</p>
  
  <p>Well thank you very much for your answers. </p>
  
  <p>Have a great day</p>