Guest User

Untitled

a guest
Aug 8th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. product = Product.new
  2.  
  3. ==== partial output from printing product.errors ====
  4. @messages={:price=>["must be greater than or equal to 0.1"]}
  5.  
  6. ==== and we can access it as such ====
  7. product.errors[:price]
Advertisement
Add Comment
Please, Sign In to add comment