Ralph Shnelvar wrote: > I have a list of fields in a form that need to be validated against a > database. > > I would prefer to have the validation occur every time the field loses > focus (onblur event) rather than when the user does a submit. > > Does anyone know of an RoR example of how to do that?
Remember not to rely on client-side validation. It's very useful, but it's easy to turn off JS and bypass it. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- 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.

