Home Is there something like .NET's data annotations in rails?
Reply: 0

Is there something like .NET's data annotations in rails?

user447
1#
user447 Published in June 19, 2018, 6:30 pm

I was looking for something similar to .net's data annotations in rails, something like this.

What I want to achieve by this is: I have some fields (they could be nil also) for which I want to check the length and if the length exceeds I want to display an error message.

I want to club all the error messages related to, say all blog posts (which again have many separate fields) and then display them at once.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.323993 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO