Hi, I''m getting some really weird behaviour when working on my RoR application, mainly around models in modules. For instance, if I run ''ruby script/generate model a/b/c'' I get: class A::B::C < ActiveRecord::Base end But this seems to have a NameError on ''A'', but if I put: module A module B end end before that class declaration I don''t. Note that my ''c.rd'' file is under ''app/models/a/b'' directory. Being semi-new to Ruby I''m not quite sure why it''s doing it. Then there''s the unit-test for this which has: require File.dirname(__FILE__) + ''/../test_helper'' At the top, but because this is in ''test/unit/a/b'' directory I assumed it should be: require File.dirname(__FILE__) + ''/../../../test_helper'' And then that generates warnings when run with rake: ./test/unit/a/b/../../../../config/environment.rb:1: warning: already initialized constant RAILS_ROOT ./test/unit/a/b/../../../../config/environment.rb:2: warning: already initialized constant RAILS_ENV ./test/unit/a/b/../../../../config/environment.rb:6: warning: already initialized constant ADDITIONAL_LOAD_PATHS ./test/unit/a/b/../../../../config/environment.rb:52: warning: already initialized constant RAILS_DEFAULT_LOGGER ./test/unit/a/b/../../../../config/environment.rb:66: warning: already initialized constant Controllers And suffers from the same NameError. Running ruby 1.8.3 on a Gentoo PPC platform, with RoR 0.12.1. What am I doing wrong? I know it''s me! Matt