Client side form validations

Can anyone point me in the direction of what is the best way to
implement client side validations in rails? It seems like it is/used to
be client_side_validations, but I can’t get it to work with formtastic
or simple_form. Is there a gem out there that will do client side form
validations out of the box, or do I need to write my own javascript?