#319 ✓resolved
Geoff Drake

Rails Error when starting with Hobo in vendor/plugins

Reported by Geoff Drake | November 3rd, 2008 @ 03:09 AM

I am running hobo 0.8.3 with Rails 2.1.1.

If I run with hobo installed as a system gem everything works ok.

However if I unpack the gem into vendor/plugins when I start the server (Mongrel) I get the following error and the server exits.

I need to be able to use the vendor/plugins version as when I deploy to the live server hobo is not installed by my hosting company.

=> Booting Mongrel (use 'script/server webrick' to force WEBrick) => Rails 2.1.1 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Exiting
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:116:in qualified_const_defined?': "Plugins::Hobo-0.8.3::Lib::Hobo" is not a valid constant name! (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:339:innew_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:331:in collect' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:331:innew_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:215:in load_file' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:96:inrequire_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:261:in load_missing_constant' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:inconst_missing' from /home/geoffd/projects/doyle/vendor/plugins/hobo-0.8.3/lib/hobo/dryml.rb:29 ... 50 levels... from /usr/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/server.rb:39 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire' from /home/geoffd/projects/doyle/script/server:3

Cheers
Geoff

Comments and changes to this ticket

  • Matt Jones

    Matt Jones November 5th, 2008 @ 03:56 AM

    This is almost certainly a variant on the problem described here: http://groups.google.com/group/h...

    You'll need to apply the fix in that mail, as well as move the hobo-0.8.3 directory to vendor/gems and add a config.gem 'hobo' line in environment.rb.

    You'll probably need to explicitly add lines for hobosupport and hobofields as well; gem dependencies / unpacked gems were broken in Rails 2.1.1. And Hobo doesn't work on 2.2RC1...

  • Tom Locke

    Tom Locke December 1st, 2008 @ 05:29 PM

    • State changed from “new” to “resolved”

    I'm going to close this as I think it's a Rails 2.1 issue and should be fixed in Rails 2.2. Please re-open if that is not the case!

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages