Flowdock
method

get

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::Errors
get(key) public

Get messages for key.

person.errors.messages   # => {:name=>["can not be nil"]}
person.errors.get(:name) # => ["can not be nil"]
person.errors.get(:age)  # => nil
Show source
Register or log in to add new notes.