Created
November 12, 2015 16:11
-
-
Save hcn1519/24a35bf83cfc4f64c03b 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(@sign_up_form) do |f| %> | |
<% if @sign_up_form.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@sign_up_form.errors.count, "error") %> prohibited this sign_up_form from being saved:</h2> | |
<ul> | |
<% @sign_up_form.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<div class="field"> | |
<%= f.label :title %><br> | |
<%= f.text_field :title, class:"form-control" %> | |
</div> | |
<div class="field"> | |
<%= f.label :content %><br> | |
<%= f.text_area :content, class:"form-control" %> | |
</div> | |
<div class="actions"> | |
<%= f.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