Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<%= 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