4 ms·
I've been using this for a new rails app: https://github.com/bcardarella/client_side_validations https://github.com/bcardarella/client_side_validations It does
by rgbrgb 14y ago
I've been using this for a new rails app:
https://github.com/bcardarella/client_side_validations https://github.com/bcardarella/client_side_validations
It does basically what you describe, but once you combine it with some other gems and add in some non-standard validations, it seems to get a bit unwieldy. I'm newish to rails but it makes me pine for Node.js, where I could literally just run the same validations on the client and server. Do any rails gurus know if this is best practice?
- alxndr 14y agoThat's a nice looking gem. I'd love to use it on some of my larger projects, but I don't like unwieldy... Can you share any specifics of what doesn't Just Work?
- bcardarella 14y agoI'm the author. I'd be interested to know which libraries you have combined with it and have had issues? Have you opened up any issues on Github about these libraries? And what are the "non-standard validations"? If you are referring to custom validations that you wrote then you'll have to write the supporting javascript validation.