Created
April 13, 2017 08:17
-
-
Save Evanto/2c82113d21e84f0864a19880dc1e1729 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