Reputation: 16339
I am developing my application using Rails. It has 400 or more models and some models contain more than 200 rows just for relationships, so it's too hard handle it. Are there any ways I can handle my application in more proper and easy ways?
Upvotes: 2
Views: 344
Reputation: 5081
In application that I'm working with, there are about 100 models. Few things that helped us develop it:
case
s or if
s to handle different types of objects (like admin/normal user) probably you should use polymorphismWise refactoring takes a lot of time, but if you drop this part of development, project maintenance will become overwhelming. Check out books about Ruby, RoR, refactoring, metaprogramming. Investing time in learning might also bring effects.
Upvotes: 2