错误的参数数量(4个为3) 提取的来源(围绕#行):
enter code here
<%= f.text_field :name %>
# <%= f.fields_for :tasks do |task_form| %>
<%= task_form.text_field :fname %>
<%= task_form.link_to_remove "Remove this task" %>
<% end %>
答案 0 :(得分:0)
试试这个:
<%= f.semantic_fields_for :tasks, ModelName.new do |task_form| %>
感谢。