Rails AJAX: My partial needs a FormBuilder instance

后端 未结 5 650
梦如初夏
梦如初夏 2020-12-09 04:52

So I\'ve got a form in my Rails app which uses a custom FormBuilder to give me some custom field tags

<% form_for :staff_member, @staff_member, :builder =         


        
5条回答
  •  感动是毒
    2020-12-09 05:18

    Use fields_for inside your partial. It performs a similar task but without wrapping the form tags. See the API docs.

提交回复
热议问题