Ether change "date" to "date_of_birth" or try
validates_presence_of :date, :message=> "Date of Birth is
required"
On 7/28/05, Alessandro Cauduro
<alessandro-/kv94B6L94ZwFqzsTH5u/w@public.gmane.org>
wrote:>
>
>
> How can I alter the error messages so that instead of the field name in the
> database plus the message , it shows something more descriptive?
>
>
>
> For example:
>
>
>
> validates_presence_of :date
>
>
>
>
>
> in this case date = "Date of Birth"
>
>
>
>
>
> Alessandro
>
>
>
>
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>