RubyGems Navigation menu

view_models 1.5.7

The view models gem adds the missing R (Representation) to Rails' MVC. It provides simple proxy functionality for your models and thus helps you keep the model and view representations of a model separate, as it should be. Also, you can define helper methods on the (view) model instead of globally to keep them focused, more quickly understood and more easily testable. View Models also introduce hierarchical rendering for your hierarchical models. If the account view is not defined for the subclass FemaleUser, it checks if it is defined for User, for example, to see when there is no specific view, if there is a general view. So, in other words: Polymorphism not just in the model, but also in the view. Have fun!

Versions:

  1. 4.0.1 - January 4, 2014 (119 KB)
  2. 3.0.1 - December 16, 2012 (239 KB)
  3. 3.0.0 - October 30, 2012 (120 KB)
  4. 2.0.1 - April 9, 2011 (20 KB)
  5. 2.0.0 - July 19, 2010 (14.5 KB)
Show all versions (13 total)

Runtime Dependencies:

Development Dependencies:

Authors:

  • Florian Hanke, Kaspar Schiess, Niko Dittmann, Andreas Schacke

Owners:

De2d64478e715fb02266f77a3f5641f6208dbe7e0c85765b79cd8e916f4e7682

Sha 256 checksum:

04f59aed3a8b74e13951cfbf52b1a93f5f962de5f0ef3c2d47e3b555cb38d0c5

Total downloads 14,750

For this version 1,403

Show all versions (13 total)

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: