Installing #haml in your heroku app

EDIT: THIS POST IS NO LONGER RELEVANT

I’ve been playing around with Heroku lately.  It’s a very nice dev and deployment environment for Rails apps.  If you need to get a basic Rails app developed and deployed quickly, this is a nice turnkey solution.

But, it does have its quirks.  One of which is #haml, the gem for which doesn’t seem to exist in the heroku system.  Fortunately, Heroku is running Rails 2.2.2 which makes it very easy to stick those gems in /vendor/gems (good practice anyway).

Just add “config.gem ‘haml’” to your config/environment.rb and run “rake gems:unpack”.  It’s all very simple.  Here’s what it looks like:

Blog comments powered by Disqus