Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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]
Advertisement
Add Comment
Please, Sign In to add comment