Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Last active July 12, 2017 05:06
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 shankardevy/4aace9771b5d339133b39b48e39fcfef to your computer and use it in GitHub Desktop.
Save shankardevy/4aace9771b5d339133b39b48e39fcfef to your computer and use it in GitHub Desktop.
<h1>Register account</h1>
<%= form_for @changeset, registration_path(@conn, :create), [as: :registration, id: "registration-form"], fn f -> %>
<div class="form-group">
<%= label f, :name, class: "control-label" %>
<%= text_input f, :name, class: "form-control" %>
<%= error_tag f, :name %>
</div>
<%= submit "Register", class: "btn btn-primary" %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment