title: Rails Error "expected ...model.rb to define Model"
body: <pre><code>class ItemController &lt; ApplicationController
  
    def create
      item = current_user.items.build(params[:presentstem])
      item.created_at = Time.now
      item.save!
      redirect_to root_path
    end
  
    def destroy
  
    end
  
  end
  </code></pre>
  
  <p>And my form in views/home/index/html.erb to add an item</p>
  
  <pre><code>&lt;div id="add_item"&gt;
      &lt;p&gt;Add a new item&lt;/p&gt;
      &lt;% form_for Item.new do |f| %&gt;
          &lt;div id="add_item_container"&gt;
          &lt;%= f.text_field :present %&gt;
          &lt;%= f.text_field :stem %&gt;
          &lt;%= f.text_field :secondary %&gt;
          &lt;%= f.check_box :atype %&gt;
          &lt;%= f.text_field :comment %&gt;
          &lt;/div&gt;
          &lt;%= f.submit "Add to List" %&gt;
      &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I define <code>Item</code>?</p>
  
  <p>at localhost:3000 I get</p>
  
  <blockquote>
    <p>Expected /Users/user/Desktop/test/app/models/item.rb to define Item<br>
        Extracted source (around line #3):</p>
  </blockquote>