Inherits from RKDynamicRouter : NSObject
Declared in RKRailsRouter.h
RKRailsRouter.m

Overview

An implementation of the RKRouter protocol suitable for interacting with a Ruby on Rails backend service. This router implementation extends the normal dynamic router and provides support for encoding properties in such a way that Rails controllers expect (i.e. model_name[attribute])

Tasks

Other Methods

  • – setModelName:forClass:

    Registers the remote model name for a local domain class. This model name will be used when serializing parameters before dispatching the request

Other Methods

Instance Methods

serializationForObject:method:

- (NSObject<RKRequestSerializable> *)serializationForObject:(NSObject<RKObjectMappable> *)object method:(RKRequestMethod)method

Declared In

RKRouter.h

setModelName:forClass:

Registers the remote model name for a local domain class. This model name will be used when serializing parameters before dispatching the request

- (void)setModelName:(NSString *)modelName forClass:(Class<RKObjectMappable>)class

Declared In

RKRailsRouter.h