client_side_validations icon indicating copy to clipboard operation
client_side_validations copied to clipboard

Client side validations does not with the latest simple form

Open nehaverma8 opened this issue 15 years ago • 9 comments

We upgraded to the latest simple form and looks like client side validation does not work any more.

nehaverma8 avatar Sep 26 '11 06:09 nehaverma8

Same issue with:

  • client_side_validations (3.1.0)
  • simple_form (1.5.1)

Which version (of either) do you recommend?

mattscilipoti avatar Sep 30 '11 13:09 mattscilipoti

i'm using those same versions and the validations are working, but appearing twice. Using ruby 1.8.7 & rails 3.1.0

drsquidop avatar Oct 01 '11 21:10 drsquidop

This will be fixed in ClientSideValidations 4.0 which I hope to have out soon.

bcardarella avatar Oct 01 '11 23:10 bcardarella

It works with SimpleForm 1.5.1 and the main branch.

#For form generation gem "simple_form" ,'1.5.1' #For client side validations gem 'client_side_validations' , :git => 'git://github.com/bcardarella/client_side_validations.git'

nehaverma8 avatar Oct 02 '11 18:10 nehaverma8

SimpleForm has been removed from what will be ClientSideValidations 4.0 and extracted to an adapter gem: http://github.com/bcardarella/client_side_validations-simple_form

bcardarella avatar Oct 08 '11 08:10 bcardarella

Is this the same issue?

https://github.com/rafaelfranca/simple_form-bootstrap/issues/4

gavinhughes avatar Nov 21 '11 04:11 gavinhughes

@bcardarella, I've posted a hacky solution in the issue track referenced above. I've noticed that http://github.com/bcardarella/client_side_validations-simple_form is still under development, so I hope you can extract something from there. It's definitely not the right way to pull this off, but I think you could get some insights for the current simple_form wrappers API.

https://github.com/rafaelfranca/simple_form-bootstrap/issues/4#issuecomment-3006676

angelim avatar Dec 04 '11 14:12 angelim

As far as I can tell, this issue still persists. ClientSideValidations 4.0 has not been released in the meantime and the client_side_validations-simple_form repository seems to be deleted. Is there any chance I can get this to work? I'd be glad to help if I can.

masone avatar Feb 27 '12 14:02 masone

@masone it was moved to https://github.com/dockyard/client_side_validations-simple_form

bcardarella avatar Feb 27 '12 15:02 bcardarella