I did this not too long ago, and it works like a charm !
The reason I wanted to do this was to change the default error message, and,
to enable error
messages for multiple models to be diplayed nicely.
Search this list for a thread titled "Multiple Model Validation"
HTH !
=Dylan
On 2/13/06, Nick Stuart <nicholas.stuart@gmail.com>
wrote:>
> Its a built in helper function. So, if you put your own
> error_messages_for method in your application.rb (or any other helper
> you want) you should be good to go. (maybe) :)
>
> -Nick
>
> On 2/13/06, John Kopanas <john@protoseinc.com> wrote:
> > If I wanted to override the error_messages_for method where within
> > the rails structure would I put it? Which file?
> >
> > Thanks :-)
> >
> > John Kopanas
> > http://www.kopanas.com
> >
> >
> >
====================================================================> >
http://www.soen.info - source of the freshest software engineering
> > information on the net
> > http://cusec.soen.info - software engineering conference
> >
> >
> > _______________________________________________
> > Rails mailing list
> > Rails@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/1d6d6c46/attachment.html