hi

I have one table called agencies_contract
i need to get data from this table

agency_id    contract_id
    1                    1

so i need to display agency_id equivalent to 1 and contract_id equivalent to
1

this table has habtm relation

how do i need to write query for this

any idea

Plz help

-- 
Karthik.k
Mobile - +91-9894991640

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to