title: Accessing relationship tables data in rails (using has_many :through)
body: <p>It is my first question, but I have yet to find an answer, so I hope it doesn't violate any rule.</p>
  
  <p>I have a problem with a seemingly simple rails issue. I have taken the time to read about relationship models in rails (has_many :through) and came upon this example:</p>
  
  <p><a href="https://i.stack.imgur.com/4pTsV.png" rel="nofollow noreferrer">Exemplary model relations</a></p>
  
  <p>In my model, I have Anthology (phyisicians), Poem(patients), and an anthology_poem relationship model (appointments). In may relationship table, I have a column, order, that indicates the position of a specific poem in a specific anthology.</p>
  
  <p>The question is - How do I address said "order" column? How do I update it/read it? I imagine something like:</p>
  
  <pre><code>book.poems.first.order
  </code></pre>
  
  <p>which obviously doesn't work.</p>
  
  <p>I'd like to be able to do it without too much hacking, because I fell in love with how simply rails handled the rest of the stuff.</p>
  
  <p>Thanks in advance!</p>