title: Association named was not found
body: <p>I am working in Rails 2. I have three tables: <code>users</code>, <code>lms_users</code> and <code>group_details</code>.</p>
  
  <p>In <code>lms_users</code> id from <code>users</code> and <code>group_details</code> is coming as foreign keys. <code>lms_users</code> has its own attributes as well. I am unable to define association in their respective models. I tried this:</p>
  
  <p>In the <code>LmsUser</code> model</p>
  
  <pre><code>belongs_to :users
  belongs_to :group_details
  </code></pre>
  
  <p>In the <code>User</code> model</p>
  
  <pre><code>has_many :group_details , :through =&gt; :lms_users
  </code></pre>
  
  <p>In the <code>GroupDetail</code> model</p>
  
  <pre><code>has_many :users , :through =&gt; :lms_users
  </code></pre>
  
  <p>But I am getting this error</p>
  
  <pre><code>ActiveRecord::ConfigurationError in Lms usersController#index
  Association named 'lms_user' was not found; perhaps you misspelled it?
  </code></pre>