title: Form - Listing another resource's objects
body: <p>I made an association between two resources , sports and activities, a activity has one sport, and wat the creation of the activity i want the user to be able to select the sport which is associated to that activity, so i wanted to make a select at the form and the possible values of that select would be all the existing sport's , then i would save the id of that chosen sport  in a sport_id variable.</p>
  
  <pre><code>&lt;div class="field"&gt;
        &lt;%= f.label "Choose the sport:" %&gt;&lt;br&gt;
        &lt;%= f.select [LIST WITH ALL SPORTS] ,:sport_id %&gt;
        &lt;%= link_to "Sport doens't exist yet?", new_sport_path %&gt;
      &lt;/div&gt;  
  </code></pre>
  
  <p>Basically i'm trying to do something like this, i just dont know what should i write where it says [LIST WITH ALL SPORTS]... Anyway , thank you !</p>