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

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


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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs