Has anyone recently thought about just merging routing into the controller? ActiveRecord handles associations very well. It seems like the controller should be able to handle its own associations just as well. Andy
Routing is not just controller associations. Routes can be also applied to models and globally across multiple scopes. On Jul 1, 3:21 pm, mbiker <andy.w.free...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Has anyone recently thought about just merging routing into the > controller? ActiveRecord handles associations very well. It seems > like the controller should be able to handle its own associations just > as well. > > Andy
Andy Freeman wrote:> Has anyone recently thought about just merging routing into the > controller?RESTful routing is not the only type of routing that Rails supports. You can also do custom routes with completely arbitrary names. In those cases, if there were no routes.rb, Rails wouldn''t even know which controller to call! Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.