title: Why do I get "The action 'index' could not be found for PeopleController"?
body: <p>I'm getting started with Ruby on Rails and am following an online tutorial.  The tutorial had me modify my routes.rb file by adding the following line:</p>
  
  <pre><code>resources :people
  </code></pre>
  
  <p>I also typed in <code>rails generate controller People</code> previously.  controllers/people_controllers.rb looks like this:</p>
  
  <pre><code>class PeopleController &lt; ApplicationController
  end
  </code></pre>
  
  <p>Everything looks good to me.  However, <code>http://0.0.0.0:3000/people</code> gives me an error:</p>
  
  <pre><code>Unknown action
  The action 'index' could not be found for PeopleController
  </code></pre>
  
  <p>I don't think I should need to do this, but when I add:</p>
  
  <pre><code>def index
  end
  </code></pre>
  
  <p>to my controller, and refresh the page, I get the following error instead:</p>
  
  <pre><code> Template is missing
  
  Missing template people/index, application/index with {:handlers=&gt;[:erb, :builder], :locale=&gt;[:en, :en], :formats=&gt;[:html]}. Searched in: * "/Users/myuser/projects/project_manager/app/views" 
  </code></pre>
  
  <p>I'm using the newest version of Ruby, and Rails v3. Everything was installed today.  What could be wrong here?</p>