% if content.errors.any? %>
This <%= content.class.to_s.downcase %> couldn't be saved because of the following errors:
<% content.errors.full_messages.each do |msg| %>
<%= msg %>
<% end %>
<% elsif flash[:notice].present? %>
<%= flash[:notice] %>
<% end %>