Validation errrors: how to get rid of "Validation failed: " and the Objects in them


#1

Hi when ever i do

rescue Exception => e
flash[:error] = e.message

the e.message will always contain the “Validation error:” string and
the Object

Example:

Validation failed: Price “message:”, Price “message”

How do i tell rails that I just want the message? and not the other
parts of the validation error to be displayed?