title: Model trouble in rails
body: <p>I have 
  customer.rb</p>
  
  <pre><code>    class Customer &lt; ActiveRecord::Base
      acts_as_authentic
      has_many :credit_cards
      has_many :telephones
      has_many :virtual_pays
  end
  </code></pre>
  
  <p>telephone.rb</p>
  
  <pre><code>    class Telephone &lt; ActiveRecord::Base
      belongs_to :customers
  end
  </code></pre>
  
  <p>When I use rails console ad write Customer.all, i'll get all data from db table customers, but when i try to fetch all data include cutomer telephone i get error 
  I write: customers.telephones.all, then i try Customer.Telephone.all, but how to correctly do this?</p>
  
  <blockquote>
    <p>NameError: undefined local variable or method <code>customers' for
    main:Object
            from (irb):6
            from /home/pp/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands/console.rb:44:in
    </code>start'
            from /home/pp/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands/console.rb:8:in
    <code>start'
            from /home/pp/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands.rb:23:in
    </code>'
            from script/rails:6:in <code>require'
            from script/rails:6:in</code>'</p>
  </blockquote>
  
  <p>Also I correct write model?</p>