Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created April 8, 2019 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chelseatroy/eea3778ee7bc29f47cb37ff6c7305772 to your computer and use it in GitHub Desktop.
Save chelseatroy/eea3778ee7bc29f47cb37ff6c7305772 to your computer and use it in GitHub Desktop.
Devise Registration with Notes Added
<h2>Sign up</h2>
<%= simple_form_for(resource, as: resource_name, url: user_registration_path) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">
<%= f.input :email,
required: true,
autofocus: true,
input_html: { autocomplete: "email" }%>
<%= f.input :password,
required: true,
hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length),
input_html: { autocomplete: "new-password" } %>
<%= f.input :password_confirmation,
required: true,
input_html: { autocomplete: "new-password" } %>
<%= f.input :notes, #here's the piece we're adding
required: true,
input_html: { autocomplete: "notes" } %>
</div>
<div class="form-actions">
<%= f.button :submit, "Sign up" %>
</div>
<% end %>
<%= render "users/shared/links" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment