Re: Routes and subfolders

Tom Reinhart
2005-05-23T00:59:56Z

On 5/22/05, Scott Brooks
<sbrooks-7+OF9GBfT4Xe9wHmmfpqLOTW4wlIGRCZ@public.gmane.org>
wrote:
> I''m trying to combine several existing internal rails apps into
one larger
> one, and I was planning on using subdirs in controllers to divide the
system.
>
> Right now I would have
> /controllers/auth/ <-- holds controllers for user auth
> /controllers/inventory/ <-- holds controllers for inventory management
> /controllers/cts/ <-- holds customer tracking information
>
> I''m trying to setup the routes for this so that the default route
brings you
> to /controllers/auth/user/login and I''m not having any luck.
Anyone have any
> pointers?

map.connect '''', :controller =>
''auth/user'', :action => ''login''

That kind of thing?

> Scott Brooks
> Network Operations Manager
> Binary Solutions Ltd.
> sbrooks-7+OF9GBfT4Xe9wHmmfpqLOTW4wlIGRCZ@public.gmane.org

Sincerely,

Tom Reinhart
tom-V0YqjHVuocLQT0dZR+AlfA@public.gmane.org