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?
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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs