Following:

http://cookbook.hobocentral.net/recipes/3-create-an-admin-subsite
http://cookbook.hobocentral.net/tutorials/subsite

To set up a sub site for my rails app but running into this error when
I try and run my server:

./script/server
=> Booting Mongrel
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
/Users/Mister/dev/copy/app/controllers/abouts_controller.rb:2:
undefined local variable or method `hobo_model' for
AboutsController:Class (NameError)
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:380:in
`load_without_new_constant_marking'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:380:in `load_file'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:521:in `new_constants_in'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:379:in `load_file'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:259:in `require_or_load'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:425:in `load_missing_constant'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:80:in `const_missing'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:92:in `const_missing_before_generators'
        from /Users/Mister/.gem/ruby/1.8/gems/rails-2.3.4/lib/rails_generator/
lookup.rb:15:in `const_missing'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/inflector.rb:361:in `constantize'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/inflector.rb:360:in `each'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/inflector.rb:360:in `constantize'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/core_ext/string/inflections.rb:162:in `constantize'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/lib/hobo/
model_controller.rb:61:in `all_controllers'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/lib/hobo/
model_controller.rb:57:in `each'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/lib/hobo/
model_controller.rb:57:in `all_controllers'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/lib/hobo/
model_router.rb:97:in `add_routes_for'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/lib/hobo/
model_router.rb:83:in `add_routes'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/lib/hobo/
model_router.rb:83:in `each'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/lib/hobo/
model_router.rb:83:in `add_routes'
        from /opt/local/lib/ruby/gems/1.8/gems/hobo-1.0.0/rails/../lib/
hobo.rb:73:in `add_routes'
        from /Users/Mister/dev/copy/config/routes.rb:3
        from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:226:in `draw'
        from /Users/Mister/dev/copy/config/routes.rb:1
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:145:in
`load_without_new_constant_marking'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:145:in `load'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:521:in `new_constants_in'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:145:in `load'
        from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:286:in `load_routes!'
        from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:286:in `each'
        from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:286:in `load_routes!'
        from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/
action_controller/routing/route_set.rb:266:in `reload!'
        from /Users/Mister/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
537:in `initialize_routing'
        from /Users/Mister/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
188:in `process'
        from /Users/Mister/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `send'
        from /Users/Mister/.gem/ruby/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `run'
        from /Users/Mister/dev/copy/config/environment.rb:11
        from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:521:in `new_constants_in'
        from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
        from /Users/Mister/.gem/ruby/1.8/gems/rails-2.3.4/lib/commands/
server.rb:84
        from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        from ./script/server:3

 Any ideas how to fix this, it seems like hobo requires rails 2.3.4,
am I running the wrong version of the hobo GEM?

-- 
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