Forum: Ruby on Rails One model class per file?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Martin G. (Guest)
on 2006-04-17 19:30
(Received via mailing list)
Hi Everyone,

I'm fairly new to Rails, needless to say i like it! Sometimes though,
there is a little too much magic going on inside, but i'll finally
like that too once i know all those magic tricks :) Now my question: I
have quite a lot of tables in my db (something above 300) and it seems
to me rails wants each model class in its own file? I come to this
conclusion because of the error message i get, when i pack more than
one of my model classes in one file. It says:

This error occured while loading the following files:
  input_controller.rb
    => model general_data.rb
    general_data.rb
    web_ca_user_sandbox_base.rb

All those *.rb files rails is trying to load, correspond to the model
classes I created following the naming conventions. Is there any way
to tell rails NOT to search for a model class in its own file? Or am I
simply not getting something :-)

thx in advance!
gamsl
This topic is locked and can not be replied to.