我的索引文件中有以下内容
<%= button_to '', line_items_path(:product_id => product), :remote => 'true', :class => 'addbasketbtn' %>
但是我不能将它添加到显示页面它给我一个错误。
我在这里做错了吗?
我的索引文件中有以下内容
<%= button_to '', line_items_path(:product_id => product), :remote => 'true', :class => 'addbasketbtn' %>
但是我不能将它添加到显示页面它给我一个错误。
我在这里做错了吗?