This seems to be impossible directly through fields_for. Instead, the following approach works.
<%= simple_form_for @project do |f| %> <% @project.tasks.each.with_index do |task, index| %> <%= f.simple_fields_for :tasks, task do |builder| %> <%= index %>
source share