Routing for controllers with multiple words in in Rails 4
问题 I've just upgraded to Rails 4 and found an unexpected behaviour with routing. We have a controller named EmailPreviewController. The routing for this was: get "/emailpreview", controller: 'EmailPreview', action: :index however after upgrading to Rails 4 this throws the following error when the environment is loaded: 'EmailPreview' is not a supported controller name. This can lead to potential routing problems. See http://guides.rubyonrails.org/routing.html#specifying-a-controller-to-use I've