I have a scenario where I am going to be creating a large number of models that use STI and I'm wondering what the best way to organize this is. I already have other models using STI and I really do not want to add any more files to my models folder. Is there any way to create a folder and add the models using STI there (there could be upwards of 40 b/c each uses its own methods to scrape a different site, but they all save the same data)? This seems like it would be best, or I could add them all to one file but I would rather separate them.
Asked
Active
Viewed 1,329 times
1 Answers
0
Adding a new directory is fine. Make sure you add it to the load paths in environment.rb
, though.

x1a4
- 19,417
- 5
- 40
- 40
-
Thanks, it looks like this was already answered here: http://stackoverflow.com/questions/1445341/rails-elegant-way-to-structure-models-into-subfolders-without-creating-submodule – DavidP6 May 14 '10 at 16:06