title: Ruby on Rails: Is it better to apply validations on model or through JavaScript?
body: <p>While adding the validations in the application, should we add those in models or through JavaScript and what is the difference in both these kinds of validation? What is good practice and how they differ?</p>