On Mar 17, 2010, at 1:51 PM, kika wrote:
Thanks Matt, here is the rest of the server output:
iMac-de-Keno-Kuhlmann:bmsotogrande kenokuhlmann$ script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.2.2 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
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:
445:in `load_missing_constant': uninitialized constant Property
(NameError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
dependencies.rb:77:in `const_missing'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
dependencies.rb:89:in `const_missing_before_generators'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/rails-2.2.2/lib/rails_generator/lookup.rb:15:in
`const_missing'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
inflector.rb:
352:in `constantize'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
inflector.rb:
351:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
inflector.rb:
351:in `constantize'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/
string/inflections.rb:162:in `constantize'
from /Users/kenokuhlmann/.gem/ruby/1.8/gems/hobo-1.0.0/lib/hobo/
model_controller.rb:86:in `model'
from /Users/kenokuhlmann/.gem/ruby/1.8/gems/hobo-1.0.0/lib/hobo/
model_controller.rb:299:in `available_auto_write_actions'
from /Users/kenokuhlmann/.gem/ruby/1.8/gems/hobo-1.0.0/lib/hobo/
model_controller.rb:287:in `available_auto_actions'
from /Users/kenokuhlmann/.gem/ruby/1.8/gems/hobo-1.0.0/lib/hobo/
model_controller.rb:128:in `auto_actions'
from /Users/kenokuhlmann/Dev/Ruby/hobo/bmsotogrande/app/controllers/
properties_controller.rb:5
Alright, here's the likely culprit. Do you have a matching 'Property'
model? If the model actually has another name, you'll need to pass it
to the hobo_model_controller call in properties_controller.rb
class PropertiesController < ApplicationController
hobo_model_controller(SomeOtherModel)
end
If that's not the issue, then something else is going on. If you can
post or gist the code for PropertiesController, that would be the next
place to look.
BTW, if you're starting a new app I'd strongly recommend switching to
Rails 2.3.5, as it fixes several weird ActiveRecord bugs.
--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.