Created
September 4, 2015 16:06
-
-
Save marinalaguerre20/a4f12b7976b995488866 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(@user) do |f| %> | |
<% if @user.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2> | |
<ul> | |
<% @user.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<div class="field"> | |
<%= f.label :fname %><br> | |
<%= f.text_field :fname %> | |
</div> | |
<div class="field"> | |
<%= f.label :lname %><br> | |
<%= f.text_field :lname %> | |
</div> | |
<div class="field"> | |
<%= f.label :email %><br> | |
<%= f.text_field :email %> | |
</div> | |
<div class="field"> | |
<%= f.label :password %><br> | |
<%= f.text_field :password %> | |
</div> | |
<div class="actions"> | |
<%= f.submit %> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment