Forum: Ruby on Rails Simple routing question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
313f01898b035e2ad92e16e04face00e?d=identicon&s=25 BryanMTL (Guest)
on 2007-03-24 20:57
(Received via mailing list)
I'm setting up my first real rails app, and I've run into the
following problem.

I have an admin area that now contains many controllers. To keep
things clean, i've grouped my controllers in an "admin" folder.

For example, I have "" and" and"

I've updated the controllers, accordingly (class
Admin::MemberController < ApplicationController for example), and all
works fine - as long as I remove the admin_controller.rb file from the
root of the admin folder. If exists, my app will not look within the
"member" folder to find the member controller.

I'd like to keep the admin_controller there so that i can set up a
default admin page with links to all the sections. Am I missing
something with routing that could help me out?

Thanks in advance,

0d48c5f37e2cac9cf215897f79c5e831?d=identicon&s=25 Jason Perry (ambethia)
on 2007-03-24 23:11
(Received via mailing list)
The solution you're looking for is probably in using routes to get
what you want,  not controller modules.
313f01898b035e2ad92e16e04face00e?d=identicon&s=25 BryanMTL (Guest)
on 2007-03-25 14:43
(Received via mailing list)
any idea what kind of route i could set up?

I'd like to have an action reply to /admin/ requests.

def index

for example.....


This topic is locked and can not be replied to.