Created
July 1, 2015 01:42
-
-
Save darui00kara/8a2ec9c30215e7e14491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @changeset, @action, fn f -> %> | |
<%= if f.errors != [] do %> | |
<div class="alert alert-danger"> | |
<p>Oops, something went wrong! Please check the errors below:</p> | |
<ul> | |
<%= for {attr, message} <- f.errors do %> | |
<li><%= humanize(attr) %> <%= message %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<div class="form-group"> | |
<label>Name</label> | |
<%= text_input f, :name, class: "form-control" %> | |
</div> | |
<div class="form-group"> | |
<label>Email</label> | |
<%= text_input f, :email, class: "form-control" %> | |
</div> | |
<div class="form-group"> | |
<label>Password</label> | |
<%= text_input f, :password, class: "form-control" %> | |
</div> | |
<div class="form-group"> | |
<%= submit "Submit", class: "btn btn-primary" %> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment