RubyGems Navigation menu

view_models 1.5.2

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.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 4.0.1 - January 04, 2014 (118.5 KB)
  2. 3.0.1 - December 16, 2012 (239.0 KB)
  3. 3.0.0 - October 30, 2012 (120.0 KB)
  4. 2.0.1 - April 10, 2011 (20.0 KB)
  5. 2.0.0 - July 20, 2010 (14.5 KB)
  6. 1.5.2 - March 01, 2010 (23.5 KB)
顯示所有版本(共 13)

擁有者:

作者:

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

SHA 256 checksum:

9321136750237e397ff417f938227e9eeca4893983182ebd54ac67261d8951ac

總下載次數 38,284

這個版本 3,248

License:

Ruby 版本需求:

相關連結: