ruby on rails - nested_form giving me error wrong number of arguments (4 for 3) -
wrong number of arguments (4 3) extracted source (around line #):
enter code here <%= f.text_field :name %> # <%= f.fields_for :tasks |task_form| %> <%= task_form.text_field :fname %> <%= task_form.link_to_remove "remove task" %> <% end %>
try this:
<%= f.semantic_fields_for :tasks, modelname.new |task_form| %>
thanks.
Comments
Post a Comment