$ ruby script/generate controller NewAccount::Business
$ ruby script/generate controller NewAccount::Personal
$ ruby script/generate controller NewAccount
This doesn't work because the NewAccountController class gets all the
incoming requests (URLs prefixed with "new_account"). What I would like
is a conventional way for the following URLs to work without using
Call index action in NewAccountController:
Call index action in NewAccount::BusinessController:
Call index action in NewAccount::PersonalController:
What I would like to have happen is have the NewAccountController
render a page with links to the scoped controllers, ie.
NewAccount::[Business|Personal]Controller. Basically, the URL at
/new_account will give an overview of the Personal and Business
accounts and provide links to each controller's index action.
It seems like there may be a better way. Any help is much appreciated.