Feb8
Complex validation in Rails through plugins
I’m writing a portfolio management application in Rails where complex validations are required between fields of instances. The MVC paradigm of Rails is very good to encapsulate all the business logic of the application in a very readable way.
I found an article here describing how to add validations to a model through plugins, making them reusable and semantically clear.
Even if you don’t have in mind reusability, which was my case, the added clarity if this method is worth the additional work of creating a plugin.
Complete information on how to write plugins can be found here
No related posts.
Sorry, the comment form is closed at this time.
Sorry, the comment form is closed at this time.