On Jun 16, 1:27 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On 16 Jun 2007, at 16:51, John W. Long wrote:
> > 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.

That's not necessarily true. For those models you could drop them in
the "app/application" folder with "application_controller.rb" or even
in a standard "shared" directory. There are any number of ways of
doing it and keeping it clean.

--
John Long
http://wiseheartdesign.com
http://radiantcms.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to