I''ve extended the generation of ActiveRecords to create multiple ActiveRecord classes for a given existing database and all of its tables. I place the one Abstract class (that sets establish_connection to the DB) and all of its subclassed AR files (per each table) into a directory ''app/models/<db_name>''. I then extend the $LOAD_PATH to this directory path, so that it can autoload the classes as needed. The problem is, the first Abstract file does not seem to get loaded automatically as long as its in the inner models directory, but does so if its at the ''app/models'' level. The other subclasses do seem to load automatically within the ''app/models/<db_name>'' directory. I''m not sure if this is a load_path problem, or because I am using an Abstract Model whose name doesn''t match the inner directory name (i.e., ''db_name_abstract''). Any suggestions on what to do or to check regarding proper AR autoloading? I''m using Rails 1.2.2. thanks, Eric -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---