RubyGems.org

view_models

2.0.1

For Padrino and Rails 2 views. Adds the missing R (Representation) to Rails' MVC. Provides simple proxy functionality for your models, thus helps you keep the model and view representation separate. Define focused helper methods on the (view) model, more quickly understood and more easily testable. Also: Hierarchical rendering for your hierarchical models. So, in a nutshell: Polymorphism not just in the model, but also in the view. Have fun!

installgem install view_models -v 2.0.1
Authors

Florian Hanke, Kaspar Schiess, Niko Dittmann, Andreas Schacke

7,562 total downloads 586 for this version
Owners

De2d64478e715fb02266f77a3f5641f6208dbe7e0c85765b79cd8e916f4e7682

Gemfile
gem "view_models", "~> 2.0.1"
Versions
  1. 3.0.1 December 16, 2012
  2. 3.0.0 October 30, 2012
  3. 2.0.1 April 9, 2011
  4. 2.0.0 July 19, 2010
  5. 2.0.0.ruby19 July 18, 2010
Show all versions (11 total)
Runtime Dependencies
  1. activesupport >= 2.2.0
Development Dependencies
  1. rspec >= 1.2.9