%= form_for(@mailbox, remote: true, data: { controller: 'remote-form-modal', 'remote-form-modal-target': 'form', 'action': 'ajax:success->remote-form-modal#handleSuccess ajax:error->remote-form-modal#handleError' }) do |f| %>
<% @mailbox.errors.full_messages_for(:name).each do |error_message| %> <%= error_message %> <% end %>
<% @mailbox.errors.full_messages_for(:sendgrid_api_token).each do |error_message| %> <%= error_message %> <% end %>