在我的表单中,我需要这样的管理范围
<%= form_for [:admin, @event], :html => {:multipart => true} do |f| %>
现在,用nested_form_for替换它(使用 Ran Bates 的 Nested_form gem)
<%= nested_form_for [:admin, @event], :html => {:multipart => true} do |f| %>
POST 操作为此事件插入新的嵌套任务记录两次!?
删除:admin范围可以解决这个问题,但我不能没有它。这里有什么解决方案?谢谢!