Created
January 22, 2013 16:09
-
-
Save senny/4595877 to your computer and use it in GitHub Desktop.
:controller option in rails route definitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp::Application.routes.draw do | |
# works mostly but has problems with `url_for :controller => 'module/controller'` | |
resources :posts, :controller => 'Module::Controller' | |
# works | |
resources :articles, :controller => 'module/controller' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do we support the
Module::Controller
notation?