RubyGems Navigation menu

view_models 1.5.5

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:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 4.0.1 - January 04, 2014 (119KB)
  2. 3.0.1 - December 16, 2012 (239KB)
  3. 3.0.0 - October 30, 2012 (120KB)
  4. 2.0.1 - April 10, 2011 (20KB)
  5. 2.0.0 - July 20, 2010 (14.5KB)
  6. 1.5.5 - March 03, 2010 (24KB)
全てのバージョンを表示(全13件)

Runtime依存関係 (1):

rails >= 2.2.0

Development依存関係 (1):

rspec >= 1.2.9

所有者:

作者:

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

SHA 256チェックサム:

63c6d1e6d71aa95c5f70a7f824ddb9504b55971161d71aa51e9abb3abfdecbb1

累計ダウンロード数 38,266

このバージョンのみ 3,282

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: