Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created March 28, 2019 20:19
Show Gist options
  • Save leemcalilly/83a9ff2248c35b3e7c498466bb2829e7 to your computer and use it in GitHub Desktop.
Save leemcalilly/83a9ff2248c35b3e7c498466bb2829e7 to your computer and use it in GitHub Desktop.
<%= form_with(model: account, local: true) do |form| %>
<fieldset>
<%= form.label :name, 'Company Name' %>
<%= form.text_field :name %>
</fieldset>
<%= form.fields_for :user do |builder| %>
<fieldset>
<%= builder.label :email %>
<%= builder.text_field :email, type: 'email' %>
</fieldset>
<fieldset>
<%= builder.label :password %>
<%= builder.password_field :password %>
</fieldset>
<% end %>
<%= form.submit class: 'btn' %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment