Thanks Fred  I'll try

additional Q:   when multiple errors on the same field,  writing :

<span id='email_error' class=\'warning-text warning-text-indent\'><%=
@user.errors.on(:email) %></span>

produce a concatenated string like :

is too short (minimum is 6 characters)should look like an email
address.is too short (minimum is 3 characters)should use only letters,
numbers, spaces, and .-_@ please.

how can I get 'return' inserted between each error ?
is too short (minimum is 6 characters)
should look like an email address.
is too short (minimum is 3 characters)should use only letters,
numbers, spaces, and .-_@ please

this is what field_error_proc helper is doing , I guess,  but I am not
so experienced to rewrite it ...

On 28 juin, 18:03, Frederick Cheung <[email protected]>
wrote:
> On Jun 28, 11:55 am, Erwin <[email protected]> wrote:
>
>
>
> > is there any way to disable the ActionView::Base.field_error_proc  in
> > the config file ?
>
> You could set ActionView::Base.field_error_proc to a proc that is just
> a no-op.
>
> Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to