title: How to add a custom action to the controller in Rails 3
body: <p>I want to add another action to my controller, and I can't figure out how.</p>
  
  <p>I found this on RailsCasts, and on most StackOverflow topics:</p>
  
  <pre><code># routes.rb
  resources :items, :collection =&gt; {:schedule =&gt; :post, :save_scheduling =&gt; :put}
  
  # items_controller.rb
    ...
    def schedule
    end
  
    def save_scheduling
    end
  
  # items index view:
  &lt;%= link_to 'Schedule', schedule_item_path(item) %&gt;
  </code></pre>
  
  <p>But it gives me the error:</p>
  
  <pre><code>undefined method `schedule_item_path' for #&lt;#&lt;Class:0x6287b50&gt;:0x62730c0&gt;
  </code></pre>
  
  <p>Not sure where I should go from here.</p>