hmmm not sure why I would want to do that... just wanna know why the validates method doesnt't see the local method
0
Have you tried putting the definition of custom_message before the validates_presence_of line? validates_presence_of is a class method, and when it is evaluated Ruby has not yet seen the definition below it.