Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails 2.2+ MVC with an added and very helpful presentation layer
Ruby JavaScript
Pull request Compare This branch is 1 commit ahead, 138 commits behind master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
generators/view_models
lib
rails
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

Something went wrong with that request. Please try again.