title: Uninitialized constant "Controller Name"
body: <p>I'm having an error with my routes/resources and controllers.</p>
  
  <p>I have the following in the routes.rb:</p>
  
  <pre><code># routes.rb
  resources :users do  
    resource :schedule  
  end
  </code></pre>
  
  <p>And I have a schedule_controller.rb inside controllers/users/ set up as I think it should be:</p>
  
  <pre><code>class Users::ScheduleController &lt; ApplicationController
  
    # Controller methods here...
  
  end
  </code></pre>
  
  <p>Running a rake:routes shows </p>
  
  <pre><code>user_schedule      POST   /users/:user_id/schedule(.:format)       schedules#create
  new_user_schedule  GET    /users/:user_id/schedule/new(.:format)   schedules#new
  edit_user_schedule GET    /users/:user_id/schedule/edit(.:format)  schedules#edit
                     GET    /users/:user_id/schedule(.:format)       schedules#show
                     PUT    /users/:user_id/schedule(.:format)       schedules#update
  </code></pre>
  
  <p>However, navigating to /users/:user_id/schedule is returning the following error:</p>
  
  <pre><code>uninitialized constant SchedulesController
  </code></pre>
  
  <p>My only thoughts on what the problem could be are that is has something to do with nested resources or declaring a single resource and I'm going wrong somewhere.</p>
  
  <p>I'm using the helper </p>
  
  <pre><code>new_user_schedule_path(current_user)
  </code></pre>
  
  <p>when linking to my 'new' view.</p>