<%= form_with model: @promote_good, url: { action: 'create' } do |f| %> <%= render partial: 'form', locals: { f: f } %> <%= f.submit %> <% end %>