Flowdock
method

[]

Importance_1
Ruby on Rails latest stable (v3.2.13) - 0 notes - Class: ActiveModel::Errors
[](attribute) public

When passed a symbol or a name of a method, returns an array of errors for the method.

p.errors[:name]   # => ["can not be nil"]
p.errors['name']  # => ["can not be nil"]
Show source
Register or log in to add new notes.