如何使用IE9在rails路由中强制获取get请求?

时间:2011-12-26 00:05:55

标签: ruby-on-rails ruby ruby-on-rails-3 post routes

我不明白但是出于某种原因,当我访问我正在工作的网站并在ie9中访问此网址时出现此错误

Started GET "/wheels/5/change" for 208.104.677.174 at 2011-12-25 18:56:02 -0500

AbstractController::ActionNotFound (The action '55' could not be found for WheelsController):

所有其他浏览器似乎工作正常,但IE9

这是我的路线

resources :wheels do
  member do
    post :default
    post :change
  end
end

但是你可以在IE中看到它被作为get请求发送....任何想法

这是链接

<%= link_to 'Set', default_wheel_path(wheel), :confirm => 'Are you sure?', :method => :post %>

1 个答案:

答案 0 :(得分:1)

Rails 3中的链接现在需要启用JavaScript和jquery-ujs lib。确保在布局中包含jquery和jquery-ujs。

相关问题