Rails 2.2+ MVC with an added and very helpful presentation layer
Ruby
Pull request Compare This branch is 4 commits ahead, 133 commits behind floere:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
generators/view_models
lib
spec
.gitignore
CHANGELOG
MIT-LICENSE
README.textile
Rakefile
TODO.textile
VERSION.yml
init.rb
view_models.gemspec

README.textile

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