Skip to content

Instantly share code, notes, and snippets.

@matheustardivo
Created December 10, 2011 12:48
Show Gist options
  • Save matheustardivo/1455089 to your computer and use it in GitHub Desktop.
Save matheustardivo/1455089 to your computer and use it in GitHub Desktop.
<% if @url.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@url.errors.count, "error") %> prohibited this url from being saved:</h2>
<ul>
<% @url.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment