Rails 4 client side validation

后端 未结 5 2179
挽巷
挽巷 2021-01-01 22:40

Since upgrading my site to Rails 4, the client-side-validations gem has stopped working for me. I have had a look at the various alternatives such as jquery-validation-rails

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-01 23:00

    While the client side validations will work for the simple cases, they'll require an enormous amount of workarounds to work with more complicated scenarios (for instance - conditional validations). I would recommend using Judge instead, which give you more control.

提交回复
热议问题