title: Help understand validates_each Rails helper
body: <pre><code>class User &lt; ActiveRecord::Base 
       validates_each :name, :email do |model, attr, value|
               if value =~ /groucho|harpo|chico/i 
                     model.errors.add(attr, "You can't be serious, #{value}")
                end 
       end
  end
  </code></pre>
  
  <p>Confused as to how this works.</p>
  
  <p>Is :name, email the items it will loop?</p>