新手问题 form_tag 下显示不出 submit_tag 内容

caihuadaxia · March 13, 2013 · Last by caihuadaxia replied at March 13, 2013 · 1957 hits

这段代码在 IE8 上显示不出来。 环境:ruby1.9.3,rails3.2.12,不知道说全没。

<% form_remote_tag :url => { :action => 'add_to_cart', :id => product } do %>
<%= submit_tag "Add to Cart" %>
<% end %>

或者

link_to_remote("Add to Cart",:url=>{:action=>'add_to_cart',:id=>product}) %>

把 form_remote_tag 改 form_tag 也是一样

没加 =

<%= form_remote_tag :url => { :action => 'add_to_cart', :id => product } do %>

确实是少了"=",thx.

You need to Sign in before reply, if you don't have an account, please Sign up first.