Created
September 23, 2011 01:14
-
-
Save shyam-habarakada/1236526 to your computer and use it in GitHub Desktop.
pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Encounter is a managed object, and has a dynamic property called patient. of kind Patient. | |
// Patient is a managed object as well, and has a dynamic property id. | |
[objectManager.router routeClass:[Encounter class] | |
toResourcePath:@"/patients/:patient.id/encounters" | |
forMethod:RKRequestMethodPOST]; | |
// Routing isn't resolving as expected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of the encounter being POSTed to something like /patients/34/encounter, i am seeing that it is getting posted to /patients/:patient.id/encounters.