Does ruby on rails have client side validation lik

2019-07-10 05:16发布

This question already has an answer here:

In ASP.NET MVC you can setup client side validations with the data annotations model which is similar to validations in ruby on rails. However there are unobtrusive javascript hooks created that will automatically wire up client side validations on forms. Is there anything like this for Ruby on Rails?

2条回答
在下西门庆
2楼-- · 2019-07-10 05:39
倾城 Initia
3楼-- · 2019-07-10 05:46

I was wondering this just the other day, and I found this awesome blog post about it!

http://sleekd.com/tutorials/jquery-validation-in-ruby-on-rails/

The short answer is yes, and the long answer is in the blogpost!

Andy

查看更多
登录 后发表回答