Uninitialized constant MERB_ROOT? Use Haml trunk.

Error Messages, Ruby — Tags: , — Ardekantur @ 11:22 pm
$ script/generate model User
Connecting to database...
/var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant': uninitialized constant MERB_ROOT (NameError)        
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'                                                 
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing_before_generators'                               
from /var/lib/gems/1.8/gems/rubigen-1.1.1/lib/rubigen/lookup.rb:13:in `const_missing'   
...

Having this problem? Haml recently fixed this problem in a commit. You may want to fix it manually, but you could use Haml’s trunk as well.

1 Comment »

  1. Thanks a ton, this helped me out. I hope you don’t mind, but I ended up writing something up real quick. I did include a few links back this way. I am also looking forward to Part II of “Writing A Web Application In Merb”.

    Comment by MilesZS — January 20, 2008 @ 5:44 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 Ardekantur | powered by WordPress with Barecity