title: Rails Routing Error only in production
body: <p>Hello i have this in routes.rb</p>
  
  <pre><code>  namespace :admin do
      root :to =&gt; "admin#index"
      resources :employees
      resources :customers
      resources :users
    end
  </code></pre>
  
  <p>frontend normally works, i can login to administration but there i have link like</p>
  
  <p><code>&lt;li&gt;&lt;%= link_to "users", admin_users_path %&gt;&lt;/li&gt;</code></p>
  
  <p>etc..</p>
  
  <p>if i click on that link i get this error</p>
  
  <pre><code>uninitialized constant Admin::UsersController
  </code></pre>
  
  <p>or if i click on admin_employees_path i get</p>
  
  <pre><code>uninitialized constant Admin::EmployeesController
  </code></pre>
  
  <p>and that behavior is at every link in administration</p>
  
  <p>at server with <code>rails s</code> everything is fine :p</p>
  
  <p>user controller is defined like that</p>
  
  <pre><code>class UsersController &lt; Admin::AdminController
  </code></pre>
  
  <p>files location
  controllers/admin/admin_controller.rb
  controllers/users_controller.rb</p>
  
  <p>My environments files</p>
  
  <p><strong>development.rb</strong></p>
  
  <pre><code>Web::Application.configure do
    config.cache_classes = false
    config.whiny_nils = true
    config.consider_all_requests_local       = true
    config.action_controller.perform_caching = false
    config.action_mailer.raise_delivery_errors = false
    config.active_support.deprecation = :log
    config.action_dispatch.best_standards_support = :builtin
    config.active_record.mass_assignment_sanitizer = :strict
    config.active_record.auto_explain_threshold_in_seconds = 0.5
    config.assets.compress = false
    config.assets.debug = true
  end
  </code></pre>
  
  <p><strong>production.rb</strong></p>
  
  <pre><code>Web::Application.configure do
    config.cache_classes = true # different
    config.assets.compress = true # different
  
    config.consider_all_requests_local       = true # temporary true
    config.action_controller.perform_caching = false
  
    # not in development
    config.serve_static_assets = false
    config.assets.compile = true
    config.assets.digest = true
    config.i18n.fallbacks = true
    config.active_support.deprecation = :notify
  end
  </code></pre>