%= form_with model: application, url: (application.persisted? ? [:account, application] : [:account, @team, :platform_applications]), 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: :name, options: {autofocus: true} %> <%= render 'shared/fields/text_field', method: :redirect_uri %> <%# 🚅 super scaffolding will insert new fields above this line. %> <% end %>
<% end %>