[jQuery] Re: validate form with rails

2008-03-05 Thread Klaus Hartl
On Mar 5, 5:00 am, Rodi <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm using jQuery plugin Validation by Jörn. The problem is that in > rails the element name for an input is formated as "user[email]" so > when I pass a rule, it doesn't recognize. here is the sample: > > rules: { >         user[emai

[jQuery] Re: validate form with rails

2008-03-05 Thread Alexsandro_xpt
hey, I think you need do something like this: rules: { ID_INPUT: { required: true, email: true } } Know? sould be a ID from input text. May you can help me... I need do something with ballons, look http://blog.alexsandro.com.br/aa.htm But, It don't work very well