Skip to content

Instantly share code, notes, and snippets.

@dreamwieber
dreamwieber / cocoonform
Created April 7, 2012 21:55
Cocoon form
Here's what the form looks like:
<%= simple_form_for @album do |f| %>
<% if @album.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@album.errors.count, "error") %> prohibited this Album from being saved:</h2>
<ul>
<% @album.errors.full_messages.each do |msg| %>