标签: ruby-on-rails ruby-on-rails-3
我需要通过fields_for方法删除为现有记录生成的隐藏ID字段。知道怎么做的吗?
fields_for
答案 0 :(得分:41)
来自the docs:
f.fields_for(:comments, :include_id => false)