ViewModel::Rails

Rails engine providing view models.

Installation

Add this line to your application's Gemfile:

gem 'view_model-rails'

And then execute:

$ bundle

Usage

Generate a base class for your view models with

$ rake view_model:setup

Generator

Create files and tests...

Example 'RegisterForm':

rails g view_model RegisterForm