rails/rails — Issue #4720: Rails 3.2.0 + 3.2.1 regression: :controller => "CampaignContent" in routes.rb under namespace converts badly
Author: NoICE
Created: 2012-01-27 13:18:16+00:00
State: open

CamelCased controller name in routes under namespace fails to convert properly

This is failing code:

http://crystalmails.local/admin/storage_files/1?width=400&height=300

``` ruby
namespace :admin do
resources :storage_files, :controller => "StorageFiles"
end
```
uninitialized constant Admin::StoragefilesController

Note the small word "files", should say "Files".

``` ruby
resources :storage_files, :controller => "StorageFiles"
```
works.

If the string syntax is deprecated, it should be clear :)

@tenderlove , I'm not sure if this is a bug in Rails or in Journey gem?
Looks like that string is downcased before converting to symbol or something?