Displaying 2 results from an estimated 2 matches for "esubject".
Did you mean:
subject
2006 Jul 12
0
What is the best way to override an _entire_ AR::Errors msg?
All,
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
from
Esubject can''t be blank
to
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?
Thanks,
Wes
--
Posted via http://www.ru...
2006 Jul 12
1
validate method not getting called?
Here''s a snippet of my model:
validates_presence_of :from_name, :from_email, :reply_name,
:reply_email, :eSubject
protected
def validate
puts "Calling: #{target_list_ids}"
errors.add_to_base("You must choose at least one target list for
this job") if self.target_list_ids.nil?
end
It appears that the validates_presence_of are being called just fine,
but my validate method i...