From: Rajkumar Surabhi Date: 2010-04-27T20:49:14+09:00 Subject: Ruby Assocations Hi in my project i have 2 tables logins and sentitems. these 2 have 1-many relation ship. The primay key in login table is cust_id and i have defined the relational key other than conventional name which is login_id. i want to count the no of records in sentitems which have the cust_id equalled how to do this. Regards, Rajkumar -- Posted via http://www.ruby-forum.com/.