#547 ✓invalid
Iain

Should front generators create default routes?

Reported by Iain | November 18th, 2009 @ 11:43 PM

Currently the front controller generators don't add anything to the routes.rb file, so that if you create a front controller for the admin subsite, then loading "/admin" doesn't work (there's no route defined for that address).

Should the front generator add lines to routes.rb when new front controllers are generated for subsites? This would be consistent with what happens for the root front controller. For example, by default the following route is generated for the root front controller:

  map.root :controller => 'front', :action => 'index'

But I'm suggesting that the generator adds:

  map.connect 'admin', :controller => 'admin/front', :action => 'index'

for the admin/front controller and something similar for each subsite front controller.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages