title: Confusion about routing in rails 4
body: <p>In my Rails 4 code, items is a resource (I created a database migration for items with rails generate model item column1:string ...). I have created a controller, items_controller, with a method htmlupdates in it. I do an ajax call with</p>
  
  <pre><code>url: '/items/htmlupdates'
  </code></pre>
  
  <p>My code works fine when I put the following line in my config/routes.rb</p>
  
  <pre><code>get 'items/htmlupdates' =&gt; 'items#htmlupdates'
  </code></pre>
  
  <p>but the code doesn't work when I put the following in config/routes.rb</p>
  
  <pre><code>resources :items, only: [:new, :htmlupdates, :create]
  </code></pre>
  
  <p>In the terminal log I receive the error message:</p>
  
  <pre><code>Started GET "/items/htmlupdates?_12345678..." for 127.0.0.1 at 2013-09-15 10:47:54 -0700
  Processing by ItemsController#show as JS
    Parameters: {"_"=&gt;12345678...", "id"=&gt;"grades"}
  </code></pre>
  
  <p>Why does it think that I'm trying to display the htmlupdate row in items table? What is the correct format for url in the ajax call?
  Thanks.</p>