title: Access another models value within a view, simple but complex?
body: <p>I have a simple problem, but finding the solution is NOT that simple.  </p>
  
  <p>I have two models, Person, Skill<br>
  Person has many skills<br>
  Skills belong to person  </p>
  
  <p>In the database, Person table has a skill_id which takes the id from the Skills table as foreign key.  </p>
  
  <p>In the view I am trying to list the skills for that Person by name, I can get them by id, but how can I retrieve the name field from the Skills table.  </p>
  
  <p>Person.html(view)  </p>
  
  <pre><code>&lt;p&gt;Current skills for: &lt;b&gt;&lt;%= "#{ @person.name }" -%&gt;&lt;/b&gt;&lt;/p&gt;   
  
  &lt;% @people.each do |p| %&gt;  
      &lt;p&gt;Age: &lt;%= "#{p.age}" %&gt;&lt;/p&gt;  
      &lt;p&gt;&lt;%= "#{p.start_date}" %&gt;&lt;/p&gt;  
      &lt;p&gt;&lt;%= "#{p.skill_id}" %&gt;&lt;/p&gt;    
  &lt;% end %&gt; 
  </code></pre>