Adding additional gems to nesta

It’s worth noting for the newbies that nesta uses bundler, so you need to explicitly add gems to your Gemfile or you won’t be able to require them. I was getting

no such file to load --

from passenger using RVM. With excellent help from sutto on irc://freenode/rvm, I did two things:

  1. Made sure I had the files .rvmrc and config/setup_load_paths.rb to correctly set my gem path.
  2. Added the additional gems I wanted to use, to Gemfile in my nesta install.

So in my case, my Gemfile now starts like this:

source :gemcutter

gem "builder", "2.1.2"
gem "haml", "3.0.12"
gem "maruku", "0.6.0"
gem "RedCloth", "4.2.2"
gem "sinatra", "1.0"
# I want to be able to require these aswell...
gem "rack-funky-cache", "0.0.3"
gem "coderay", "0.9.5"
gem "rack-codehighlighter", "0.4.7"

...

References:
The Path to Better RVM & Passenger Integration
A Guide to a Nginx, Passenger and RVM Server

Published on in Nesta