Re: validates_associated / error_messages_for

Michael Schuerig
Tue, 17 May 2005 08:15:12 -0000

On Tuesday 17 May 2005 06:33, Sean T Allen wrote:
> is there a way, preferably on a per-association basis to have the
> error messaage include
> the actual error like
>
> Zipcode is too long (max is 10 characters)

You''d have to do it yourself. See

http://wiki.rubyonrails.com/rails/show/HowtoChangeValidationErrorDisplay

for a start.

Michael

--
Michael Schuerig                 Nothing is as brilliantly adaptive
mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org       as selective
stupidity.
http://www.schuerig.de/michael/    --A.O. Rorty, The Deceptive Self