A view model/representer solution for Rails.
- Polymorph view model objects that correspond to model objects.
- View model specific templates.
- Hierarchical Template Rendering: Allows generalized templates for a class tree of view models.
- Helper methods directly on the view models.
- No view related code in the models.
- A clean API for use in Rails.
- 100% rcov coverage, nice metrics, gallons of blood and sweat by excellent contributors.
script/plugin install git://github.com/floere/view_models.git
gem install view_models
and then adding the line
config.gem 'view_models'
in your environment.rb.
Usage, Examples, In-depth Infos [Wiki]
Reference [RDoc]
Gem [RubyGems.org]
Mailing List
Bug Tracker
Metrics
Source [Github]
Homepage