title: How to use inner join in Ruby On Rails
body: <p>I am working on rails.</p>
  
  <p>my need is,</p>
  
  <pre><code>@accountUrl = Account.find_by_id(current_account_id)
  
  @details = Detail.find_by_acc_id(@accountUrl.id)
  </code></pre>
  
  <p>How to write inner join query from above example</p>
  
  <p>Can any one.</p>