On Oct 31, 2011, at 2:43 AM, Ignacio Huerta wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I have seen the same error: "Dryml is not missing constant
> DRYMLBuilder". In my environment, after moving from RC2 to RC3 I get this:
> 
> $ rails server -e production
> => Booting WEBrick
> => Rails 3.0.10 application starting in production on http://0.0.0.0:3000
> => Call with -d to detach
> => Ctrl-C to shutdown server
> Exiting
> /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:479:in
> `load_missing_constant': Dryml is not missing constant DRYMLBuilder!
> (ArgumentError)
> 
> I found a workaround: comment the line in
> config/initializers/dryml_taglibs.rb. Somehow preloading taglibs is not
> working with my app.

Found this - the problem was that Erubis usually gets loaded by Rails, but in 
this context that hasn't happened yet. The error in production mode was HIGHLY 
uninformative, but forcing precompile_taglibs to run in development mode gave 
this:

/Users/mattjones/.rvm/gems/ruby-1.9.2-p290/gems/dryml-1.3.0.RC3/lib/dryml/dryml_builder.rb:63:in
 `<class:DRYMLBuilder>': uninitialized constant Erubis (NameError)

MUCH more helpful. :)

I've committed the one-line fix to the repo; for now, you can add:

require 'erubis'

to the top of dryml_taglibs.rb.

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to