I have two modules for my controllers containing the following files
Each of those controllers is declared with the appropriate module like
class Admin::NewController < ApplicationController
class Admin::ListController < ApplicationController
class Admin::SidebarController < ApplicationController
class Community::InputController < ApplicationController
class Community::SidebarController < ApplicationController
I have the following subdirectories in app/helpers
along with helper definitions respecting the subfolder->module
convention like so
Under views I have subdirectories for the modules like so
I have my routes.rb setup with one additional route
Prefix all routes with webca
Install the default route as the lowest priority.
All actions for controller ‘admin/new’ are found
However,the following routes DO NOT WORK (although they are “the same”
webca/community/input/general_data DOESN’T WORK
webca/community/input/administration DOESN’T WORK
The urls for ‘admin/xxx’ controllers even work using the lower
priority route :controller/:action/:id as expected. The urls for
‘community/input’ controller don’t even work with this route!
I have doublechecked everything but I can’t find any
conceptual/syntactical/whatever difference between these two routing
ANY help very much appreciated!