strange, I know, but using user_root_path in production doesn't work. When I click on the link myapp.com/user , I get page 404.
There is no scythe in the log file, but an unsuccessful attempt:
Started GET "/user" for 123.125.146.23 at 2011-01-19 19:40:45 +0000 ActionController::RoutingError (uninitialized constant User::UsersController):
Now the only way to see something about this unified constant is to enable rails c and enter the constant into the console. Here's what happens:
ruby-1.9.2-p136 :005 > User::UsersController (irb):5: warning: toplevel constant UsersController referenced by User::UsersController => UsersController
Now, some digging has discovered that this level warning could be related to it. But the magazine talks about bubbles.
So, I changed the route file:
devise_for :users namespace :user do root :to => "users#index" end resources :subdomains match '/user' => 'users#index'
in
devise_for :users namespace :user do root :to => "subdomains#index" end resources :subdomains match '/user' => 'users#index', :controller => :users
The idea was that perhaps the production environment did not like the user index #, so I changed it to the index of subdomains #. I can get / subdomains without problems. so the actual page will show this is a route that is being washed ... any thoughts?
setup: rails 3.0.3, develop 1.1.5 (and 1.1.3 was updated, same problem)
source share