Ok, so I removed haml on both dev & production box:
sudo gem uninstall haml
(all versions)
And then reinstalled on dev & production:
rake install [no sudo this time]
Everything is fine, no errors. On the dev box:
haml --rails /path/to/my/app
and then checked into git, commit & deploy. Now in production I have
rails --version
Rails 2.1.0
gem --version
1.2.0
haml --version
Haml 2.1.0.ff425bd
and in the plugins directory
init.rb
But still
undefined method `init_rails' for Haml:Module (NoMethodError)
Which means the gem isn't loading properly. As per init.rb, if I move
the haml files into vendor/plugins/haml they will be picked up, but
with all sorts of other wonky errors.
Regarding your question about chown-ing the directory, no, I tried
that before to no avail. But this time I installed it without sudo
and now no problems with ownership that I can see.
So that's the assumption I'm working with now: that in init.rb,
"require 'haml'" isn't picking up the gem somehow.
Hmm.