Created
April 13, 2017 08:16
-
-
Save Evanto/7662dc7ccfcb64dedc469c2f3ae1e70a 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(comment) do |f| %> | |
<% if comment.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(comment.errors.count, "error") %> prohibited this comment from being saved:</h2> | |
<ul> | |
<% comment.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment