<%= form_with model: @match, url: form_url, method: form_method do %> <%= render "schedule_fields", match: @match %> <%= submit_tag submit_label, class: "btn btn-primary", style: "margin-top:20px" %> <% end %>