title: ruby on rails undefined method for array
body: <p>I have a user who owns many phones<br>
  I have a a phone which has many call summaries<br>
  therefore my user has many call summaries  </p>
  
  <p>Now to the code that I have:  </p>
  
  <pre><code>class User &lt; ActiveRecord::Base
      has_many :phones
      has_many :call_summaries, :through =&gt; :phones
  end  
  
  class Phone &lt; ActiveRecord::Base
      belongs_to :user
      has_many :call_summaries
  end
  
  class CallSummary &lt; ActiveRecord::Base
      belongs_to :phones
  end
  </code></pre>
  
  <p>I would like to generate a report that shows all the call summaries for the phones that belong to that certain user. I go into the controller and this is my code there:  </p>
  
  <pre><code>def index
    @phones = Phone.find(:all, :conditions =&gt; ["user_id = ?", @current_user.id])
    @call_summaries = @phones.call_summaries.find(:all)
  end
  </code></pre>
  
  <p>But this is returning this error:  </p>
  
  <blockquote>
    <p>undefined method `call_summaries' for #Array:0x476d2d0</p>
  </blockquote>
  
  <p>Any help would be very much appreciated.</p>