<%= form_with model: @provider, url: admin_provider_path(@provider) do |f| %> <%= render partial: 'form', locals: { f: f } %> <% end %>