Skip to content
floere edited this page Sep 13, 2010 · 11 revisions

Gem for use in Rails (suggested)

gem install view_models

and then adding the line

config.gem 'view_models'

in your environment.rb.

Rails Plugin

script/plugin install git://github.com/floere/view_models.git

Looking at the gem code

If you want to look at the gem code, I have this “handy” command line ;)

gem which view_models | sed 's/lib\/view_models.rb//' | xargs mate

It’s probably best if you put it in a script:

#!/bin/bash
#
gem which $1 | sed s/lib\\/$1.rb\// | xargs mate

This makes it easy to look at any gem

gemedit view_models

Clone this wiki locally