title: Rails - Case Monitoring App - Want to display data from 2 tables in the view
body: <p>Model:</p>
  
  <pre><code>class Case &lt; ActiveRecord::Base
    belongs_to :employee, :foreign_key =&gt; :input_id
  end
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>def index
    @cases = Case.all
  end
  </code></pre>
  
  <p>View</p>
  
  <pre><code>&lt;% @cases.each do |c| %&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;%= c.employee.name %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= c.problem %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= c.assigned_id %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= c.solution %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= c.verified_id %&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>How do I make the view display the employee name who owns the assigned_id?
  (I'm already using employee.name to display the name for the input_id column?)</p>