Skip to content

Instantly share code, notes, and snippets.

@pwightman
Created June 18, 2012 19:11
Show Gist options
  • Save pwightman/2950140 to your computer and use it in GitHub Desktop.
Save pwightman/2950140 to your computer and use it in GitHub Desktop.
1.9.3p194 :006 > u.errors[:title] = "can't be blank"
=> "can't be blank"
1.9.3p194 :007 > u.errors.full_messages
=> ["Title can't be blank"]
1.9.3p194 :008 > u.errors[:base] = "Please don't do that"
=> "Please don't do that"
1.9.3p194 :009 > u.errors.full_messages
=> ["Title can't be blank", "Please don't do that"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment