title: I'm getting ActionController::RoutingError: No route matches [GET] "/items" even though Routes look correct
body: <p>I'm new to programming and have been learning Ruby on rails for about 11 weeks. </p>
  
  <p>When running a feature spec (using RSpec and Capybara) on a simple "To do" list app. I get this error:</p>
  
  <pre><code>Failures:
  
    1) User creates ITEM Successfully
       Failure/Error: click_button 'Save'
       ActionController::RoutingError:
         No route matches [GET] "/items"
  </code></pre>
  
  <p>Here is my routes file: </p>
  
  <pre><code>  devise_for :users
  
  
      resources :items, only: [:new, :create, :show] 
  
  
    get 'about' =&gt; 'welcome#about'
    root to: "welcome#index"
  
  end
  </code></pre>
  
  <p>...here is the "items" controller:</p>
  
  <pre><code>class ItemsController &lt; ApplicationController
  
    def new
    end
  
    def show
    end
  
    def create
      @item = Item.new(item_params)
      @item.save
      redirect_to @item
    end
  
  
     private
  
     def item_params
       params.require(:item).permit(:body)
     end
   end
  </code></pre>
  
  <p>the item model:</p>
  
  <pre><code>class Item &lt; ActiveRecord::Base
    belongs_to :list
  
    scope :unfinished, -&gt; { where('done' =&gt; false) }
    scope :unfinished_and_recent, -&gt; { unfinished.where("created_at &gt; ?", Time.now-7.days) }
    scope :finished, -&gt; { where('done' =&gt; true) }
  
    validates :body, length: { minimum: 5 }, presence: true
    validates :list, presence: true
   end
  </code></pre>
  
  <p>the spec:</p>
  
  <pre><code>require 'rails_helper' 
  
  feature 'User creates ITEM' do
    scenario 'Successfully' do
      visit new_item_path
      fill_in 'Body', with: 'washcar'
      click_button 'Save' 
    end  
  end
  </code></pre>
  
  <p>and the item factory:</p>
  
  <pre><code>FactoryGirl.define do 
    factory :item do 
      body 'itembody'
      list 
      end
   end
  </code></pre>
  
  <p>...and here is the form: </p>
  
  <pre><code>&lt;h1&gt;Items#new&lt;/h1&gt;
  
  &lt;%= form_for Item.new do |form| %&gt;
    &lt;%= form.text_field :body, placeholder: 'Body' %&gt; 
     &lt;%= form.submit 'Save' %&gt;
  &lt;% end %&gt; 
  </code></pre>
  
  <p>i ran rake routes: </p>
  
  <pre><code>   items POST   /items(.:format)                  items#create
  new_item GET    /items/new(.:format)              items#new
      item GET    /items/:id(.:format)              items#show
     about GET    /about(.:format)                  welcome#about
  </code></pre>