Forum: Ruby on Rails Validation errrors: how to get rid of "Validation failed: " and the Objects in them

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tyl T. (Guest)
on 2008-12-10 05:17
(Received via mailing list)
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 topic is locked and can not be replied to.