It's because you're using RVM, I should think. RVM separates out gem environments, so you need to install Haml in the same one in which Rails was installed. If you weren't using RVM with Rails 2.*, then that wouldn't have been an issue.
On Fri, Feb 26, 2010 at 4:50 PM, MHblue <[email protected]> wrote: > That solved it, thanks. > > Is there a reason why I had to add it manually with rails 3, but in > rails 2 simply following the normal install instructions worked? > > On Feb 26, 4:24 pm, Daniel Guettler <[email protected]> wrote: > > did you add 'haml' to your Gemfile? > > > > On Feb 26, 3:59 pm, MHblue <[email protected]> wrote: > > > > > > > > > After upgrading to Rails 3, I cannot get haml to work. I have used RVM > > > and installed fresh copies of ruby and rails to no avail. I can get > > > the server running fine, but as soon as I run "haml --rails ." in the > > > project directory, next time I run the server I get: > > > > > /Users/me/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta/lib/ > > > active_support/dependencies.rb:167:in `require': no such file to load > > > -- haml (LoadError) > > > > > The error goes away if I delete the haml directory in vendor/plugins. > > > > > Any ideas? > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
