title: Pass a foreign key to partial render in rails
body: <p>I'm trying to pass the foreign key from one view to another using partial render. However there is a problem in passing the local variable because only the last record get to be displayed.</p>
  
  <p>Gist link: <a href="https://gist.github.com/ReemAlattas/5d08b0b60fc890540c7b" rel="nofollow">https://gist.github.com/ReemAlattas/5d08b0b60fc890540c7b</a></p>
  
  <p>Thanks in advance for your help!</p>