Here is the situation:
Model : Account
has_one servicelistModel: Servicelist ( has foreign key as 'account_id' & 'videoservice_id')
belongs_to Account
belongs_to videoservice.Model : videoservice.
has_one servicelist.
When I save Account instance X. It saves account_id from X.id.
then later after some time if the Account X wants to start using the videoservice.
How do I save the videoservice.id into Servicelist.videoservice_id (fk) where Servicelist.account_id(fk) == X.id ?
I guess what you need is
has_one :through => servicelists.See this question on how to use
:through.