I am trying to pass two local variables to my partial but I am getting this undefined local variable or method `row' for #<#:0x00000105d7f3b0> when using it in the partial.
Render
<%= f.fields_for :menu_items do |builder| %>
<%= render partial: 'menu_item_fields', locals: {f: builder, row: f.options[:child_index]} %>
<% end %>`
Partial
<a href="#" data-target="item-<%= f.options[:child_index].to_s + "-" + row.to_s %>" class="item-field"><%= f.object.title %></a>