RubyGems Navigation menu

view_models 1.5.4

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!

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 4.0.1 - January 04, 2014 (119 ko)
  2. 3.0.1 - December 16, 2012 (239 ko)
  3. 3.0.0 - October 30, 2012 (120 ko)
  4. 2.0.1 - April 10, 2011 (20 ko)
  5. 2.0.0 - July 20, 2010 (14,5 ko)
  6. 1.5.4 - March 02, 2010 (24,5 ko)
Voir toutes les versions (13)

Dépendances de Runtime (1):

rails >= 2.2.0

Dépendances de Development (1):

rspec >= 1.2.9

Propriétaires:

Auteurs:

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

Total de contrôle SHA 256:

124b073d6ca1a11c77a3ddac86b4de774caee9ae36d073a76e899bce99737b68

Total de téléchargements 38 334

Pour cette version 3 280

License:

aucune

Version de Ruby requise: None

Liens: