All blog articles by Niyanta Jamindar
5e7730ea2db9787e18a6bbab8d20cdce
Niyanta Jamindar

There may be times when you want to decouple your form objects from the model, in simple words, insert another layer between your View and the Model, Reform is all about that.

Reform gives you a form object with validations and nested setup of models. It is completely framework-agnostic and doesn't care about your database.

Installing Reform

Add this line to your gemfile ;

gem 'reform'

Since Reform 2.2, you've to add reform-rails gem to your gemfile to automatically load...

Read complete blog post