Skip to content

reactormonk/view_models

 
 

Repository files navigation

ViewModels

A view model/representer solution for Rails.

Features

  • 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.

Installation

Rails Plugin

script/plugin install git://github.com/floere/view_models.git

Gem (for use in Rails)

gem install view_models

and then adding the line

config.gem 'view_models'

in your environment.rb.

Links Galore!

Usage, Examples, In-depth Infos [Wiki]
Reference [RDoc]
Gem [RubyGems.org]
Mailing List
Bug Tracker
Metrics
Source [Github]
Homepage

About

Rails 2.2+ MVC with an added and very helpful presentation layer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%