Rails - Railscasts nested complex forms
问题 I am using Ryan Bates' Complex Forms Deep Branch, and trying to replicate that example for a form that has two additional nested levels. SurveyName has many SurveyQuestions, which have many SurveyOptions. # application_helper (identical to deep branch) def remove_child_link(name, f) f.hidden_field(:_destroy) + link_to_function(name, "remove_fields(this)") end def add_child_link(name, f, method) fields = new_child_fields(f, method) link_to_function(name, h("insert_fields(this, \"#{method}\", \