paul wrote:> Hi, all, I thinking to combine the multiple models into 1 file, so
> that model in sub-system can be in a single file, which will help to
> ease maintenance.
>
> Does anyone knows how to do it, and if it is recommented to do so?
One problem you I think you will have is that the magic
''require'' stuff
in rails assumes that the model Foo can be found in foo.rb, which
doesn''t sound like it would work if you have more than one model in a
single file.
Fred
--
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
-~----------~----~----~----~------~----~------~--~---