IknowViewModels
ViewModels provide a means of encapsulating a collection of related data and specifying its JSON serialization.
Installation
Add this line to your application’s Gemfile:
gem ‘iknow_view_models’
And then execute:
$ bundle
Or install it yourself as:
$ gem install iknow_view_models