Tag:

表格提交两次,原因是:remote => true

我的表单提交了两次,经过双重检查,它是由’:remote => true’引起的。 我删除它,我的项目运作良好。 谁能告诉我为什么? 以及如何使用’:remote => true’? 我的ruby代码: true, :id => ‘new_product_group_form’) do %> [:product_scopes, :groups, group_name]), scopes.keys.map do |scope_name| [ t(:name, :scope => [:product_scopes, :scopes, scope_name]), scope_name] end ] end ) %> <input type="submit" value="” /> 浏览器中的最终html代码。 Add a scope In Taxon(without descendants) In taxons and all their descendantsProduct name have following Product […]