<%= form_with(model: [@domain, credential], html: { class: "work-area"}) do |form| %> <% if credential.errors.any? %>

<%= pluralize(credential.errors.count, "error") %> prohibited this credential from being saved:

<% end %> <%= form.label :email %>:<%= form.text_field :email %>@<%=@domain.domain%>
<%= form.label :password %>:<%= form.text_field :password %>
<%= form.submit "Create email" %> <% end %>