-
-
Save anonymous/ed8dc71d9a9f3c175edd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product = Product.new | |
==== partial output from printing product.errors ==== | |
@messages={:price=>["must be greater than or equal to 0.1"]} | |
==== and we can access it as such ==== | |
product.errors[:price] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment