title: signature for a RESTFUL update in Rails for rspec
body: <p>I'm converting some update code from a hand-coded to a standard restful route but am having some problems</p>
  
  <p>My route is:</p>
  
  <pre><code>resources :items, only: [:create, :update], :controller =&gt; "api_items"
  </code></pre>
  
  <p>and my spec is:</p>
  
  <pre><code>describe 'task030: updating header / detail of a Item', task030: true do
    it 'should update the header detail of a MenuItem' do
      item=FactoryGirl.create(:item)
      # not working
      #put :update,  { header: "my menu item header MELISSA BALDWIN", detail: "my menu item yadda yadda", global_id: menu_item.global_id, position: 1 }
      put :update, id: item.id, item: { header: "my menu item header MELISSA BALDWIN", detail: "my menu item yadda yadda", global_id: menu_item.global_id, position: 1 }
  </code></pre>
  
  <p>The error I get is about an intermediary item but I think my put is just wrong? Any help in diagnosing what's off?</p>
  
  <p>thx in advance</p>