Skip to content

Instantly share code, notes, and snippets.

@senny
Created January 22, 2013 16:09
Show Gist options
  • Save senny/4595877 to your computer and use it in GitHub Desktop.
Save senny/4595877 to your computer and use it in GitHub Desktop.
:controller option in rails route definitions
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
@pixeltrix
Copy link

@senny no - the mapper assumes that strings passed are underscored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment