Skip to content

Instantly share code, notes, and snippets.

@shyam-habarakada
Created September 23, 2011 01:14
Show Gist options
  • Save shyam-habarakada/1236526 to your computer and use it in GitHub Desktop.
Save shyam-habarakada/1236526 to your computer and use it in GitHub Desktop.
pem
// 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.
@shyam-habarakada
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment