%= form_with model: delivery_attempt, url: (delivery_attempt.persisted? ? [:account, delivery_attempt] : [:account, @delivery, :delivery_attempts]), local: true, class: 'form' do |form| %> <%= render 'account/shared/forms/errors', form: form %> <% with_field_settings form: form do %> <%= render 'shared/fields/text_field', method: :response_code, options: {autofocus: true} %> <%= render 'shared/fields/text_area', method: :response_body %> <%= render 'shared/fields/text_area', method: :response_message %> <%= render 'shared/fields/text_area', method: :error_message %> <%= render 'shared/fields/text_field', method: :attempt_number %> <%# 🚅 super scaffolding will insert new fields above this line. %> <% end %>
<% end %>