What is the best way to override an _entire_ AR::Errors msg?


I have an error message that I would like to be more readable, since my
column name doesn’t look good.

I want to change the output of

validates_presence_of :eSubject


Esubject can’t be blank


Subject can’t be blank

Do I have to go through aliasing the whole eSubject column in the AR
class or is there an easier way to just modify the “field part” of the
autogenerated message?


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