If I put model in app/models/subfo and add
config.load_paths += ["#{RAILS_ROOT}/app/models/subfo"]
to environment.rb, glassfish gives error:
NameError (uninitialized constant PostsController::Post):
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependenc
ies.rb:102:in `const_missing'...
It works with MRI mongrel, jruby webrick and tomcat.
Tested gem versions 0.9.3, 0.9.2, 0.9.1 with jruby 1.1.6 and 0.9.3 with jruby 1.2.0 |