On 16 Jun 2007, at 16:51, John W. Long wrote:
Perhaps the example laid out in my article is a bit extreme. I'd see it as a win if we just moved to a directory per related controller, model, and views:
[snipped example]
Is that not 10 times cleaner and easier to navigate? Now I can `mate app/comments` to work on a single controller and related views.
Sure that's nice and easy to look at, but it rather assumes that you can take each model and assign it to a controller. The rails apps I work on would not fit so easily into that schema: many models have dependencies on other models, many controllers pull together several models. A lot of our models would have to either somehow live in 3 different places or I'd somehow have to arbitrarily pick one controller/component as the 'master' one for that model. Other models don't have corresponding controllers at all.
Fred
smime.p7s
Description: S/MIME cryptographic signature
