Hi, I have a problem in displaying the error message in Ruby on Rails. I' am using
rescue => Exception ex
#display ex.message
the output I get when I tried to display it in an alert messagebox is this:
"DBI::DatabaseError: 37000 (50000) [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot approve records for the specified date..: Exec uspTestProc 279, 167, 2."
it displays some words that are not friendly to users. what I want is, is to display only these words: "Cannot approve records for the specified date"
hope I made my self clear.
thanks guys for helping me out! Godbless!