Questions tagged «fields-for»

9
Rails:带索引的fields_for?
是否有一种方法(或实现类似功能的方法)来完成fields_for_with_index? 例: <% f.fields_for_with_index :questions do |builder, index| %> <%= render 'some_form', :f => builder, :i => index %> <% end %> 呈现的部分内容需要知道fields_for循环中的当前索引。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.