Topic: :method => "delete" making me go to show page

So I'm upgrading early Rails 2 system to Rails 3.2. When I click my destroy button, it takes me to the show page. After surfing the web for about 90 minutes, all say it is javascript problem. Thing is I don't know much about Javascript and I don't know how javascript is being loaded. In all my other projects, this was never a problem, but since this is an upgrading process, it won't work.

  <%= javascript_include_tag :defaults %>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>

Application.js

//= require jquery
//= require jquery_ujs
//= require_tree .
//= require jquery_nested_form

View:

<%= link_to 'Destroy', player_path(player), :method => :delete, :confirm => 'Are you sure?' %>

And as I was doing this I had web inspector open and clicked the delete link and I got the following

GET http://localhost:3000/javascripts/jquery.js 404 (Not Found) 1:14
GET http://localhost:3000/stylesheets/application.css 404 (Not Found) 1:14
GET http://localhost:3000/javascripts/jquery_ujs.js 404 (Not Found) 1:14
Resource interpreted as Script but transferred with MIME type text/html: "https://www.superfish.com/ws/sf_conduit.jsp?dlsource=fastestchrome&CTID=4_2012-10&userId=fastest_000_fastestchrome_4_2012-10_". data:text/javascrip…:26

Last edited by skk1 (2013-05-24 11:12:38)

Re: :method => "delete" making me go to show page

Solved problem by rails generate jquery:install.

I guess my asset pipeline was disabled. i don't know what that means