Im currently trying to integrate with a third party API using active resource.
Ive completed a large amount of the work but am struggling with a single nested resource.
/company/:company_id/users/:id
I can retrieve the users from the company using
API::Company.find(124343).users
but any subsequent changes to a user will not save.
I know i have to play with the Base.site attribute to accept the argument, I just cannot find how to set the attribute. For example in the User record it has a company_id value. So obtaining the company_id is easy, I just cannot work out how to get the URL to contain it correctly and therefore its not going to the correct route, instead going to somewhere like
/company//users/32435