gem install view_models
and then adding the line
config.gem 'view_models'
in your environment.rb.
script/plugin install git://github.com/floere/view_models.git
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
There was an error while loading. Please reload this page.