title: RestKit: how to POST objects using routes?
body: <p>The RKObjectManager <a href="http://restkit.org/api/latest/Classes/RKObjectManager.html" rel="nofollow">documentation</a> shows how to construct this route</p>
  
  <pre><code>[manager.router.routeSet addRoute:[RKRoute routeWithName:@"follow_user" pathPattern:@"/users/:userID/follow" method:RKRequestMethodPOST]];
  </code></pre>
  
  <ul>
  <li>I need to make the request first in order to set some headers.</li>
  <li>I need to give the object I want to post.</li>
  <li>I need to specify a dictionary containing the userID to be matched in the path pattern of the route</li>
  </ul>
  
  <p>How do I make a url request to post an object using that route ?</p>
  
  <p>EDIT:</p>
  
  <p>requestWithPathForRouteNamed:object:parameters: does not let me give an object to post.
  requestWithObject:method:path:parameters: does not let me give a dictionary dictionary containing the userID to be matched in the path pattern of the route</p>
  
  <p>Actually I'd need something like :</p>
  
  <pre><code>- (NSMutableURLRequest *) requestWithObject:(id)objectToSend
                                forRouteNamed:(NSString *)routeName
                              routeParameters:(NSDictionary *)routeParameters;
  </code></pre>