title: undefined method each rails error
body: <p>I was trying out ruby on rails through the tutorial located at <a href="http://ruby.railstutorial.org" rel="noreferrer">http://ruby.railstutorial.org</a>.
  I got to to the point where I could create users and have their name and gravatar displayed at:</p>
  
  <pre><code>http://localhost:3000/users/1
  </code></pre>
  
  <p>Now I want to display all users when a user goes to:</p>
  
  <pre><code>http://localhost:3000/users/
  </code></pre>
  
  <p>Here is my controller:</p>
  
  <pre><code>class UsersController &lt; ApplicationController
  
    def index
      @user = User.all
    end      
  
    #...
  end
  </code></pre>
  
  <p>Here is my view.</p>
  
  <pre><code>#View for index action in user's controleer
  
  &lt;h1&gt;All users&lt;/h1&gt;
  
  &lt;ul class="users"&gt;
    &lt;% @users.each do |user| %&gt;
      &lt;li&gt;&lt;%= user.content %&gt;&lt;/li&gt;
    &lt;% end %&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I get the following error.</p>
  
  <pre><code>undefined method `each' for nil:NilClass
  </code></pre>
  
  <p>Can someone tell me why the index page is not working as I want it to.</p>