On Jan 28, 2006, at 6:38 PM, John wrote:
Rails mailing list
Here is what you have to do if you are running 1.0.0. Add this line
in side the environment.rb file here:
Rails::Initializer.run do |config|
Add support to use models in modules for namespaces.
config.controller_paths << File.join(::RAILS_ROOT, ‘app’, ‘models’)
Its a little weird becuase you use controller_paths but it will let
you use Admin::Page < AR::Base for your models to have them
namespaced inside of modules.
This is the same way that components are able to load their models
and stuff. There has been support recently added to use this by
default on edge rails but im not sure if its been checked into the
Yakima Herald-Republic Newspaper