title: How do i get User email in posts view
body: <p>This is my posts#index so far:</p>
  
  <pre><code>&lt;% @posts.each do |post| %&gt;
      &lt;%= post.title %&gt;&lt;br&gt;
      &lt;%= post.body %&gt; &lt;br&gt;
      &lt;b&gt;Author:&lt;/b&gt; &lt;%= post.user_id %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I'd like to put user.email there instead of id. How can i do that? Thanks.</p>