I'm working on a Rails app that will serve as an authentication system for other Rails apps through Rails's ActiveResource functionality.
The authentication app has an ActiveRecord model called User
. The client app has an ActiveResource model called User
. I know that in the client app I can do stuff like user.save
and it will perform a PUT operation using XML over HTTP.
But what if I want to put into my client app's User
model has_many :contacts
or something like that (contacts
being an ActiveRecord model in the client app)? Then I'd want to do stuff like get all the Contact
s that belong to some User
.
Is that possible?
(I noticed that a similar question was asked, but there weren't many responses.)