开发者

How to organize large Rails application?

I am working on a large(ERP level) Rails project. We have 150 tables and more than 150 models. It takes minutes to find a model. Should we add all models under the models folder or should we put them in different s开发者_JAVA技巧ubfolders? Same thing goes for controllers and views.


See my answer to this question; with my second example, I talk about namespacing which is possible to do for controllers (and, subsequently, views) as well.

In the case of large applications, I think it would be a very good idea to namespace your models and controllers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜