title: Problems creating an action for every object in an array
body: <p>I have run into a strange situation when creating trying to save the objects from an array to a rails backend. I have two array and I have no problem saving each one on its own. The problem is that I am also creating a table that is a combination of the two objects. So it would be best to create an action for index path 1 for both arrays, index path 2 for both arrays and so on. The arrays will always have the same amount of objects inside of them. This way, for index path one, it could save both of them and make the combination table at the same time, thus eliminating my problem. My second problem is that I have no idea how to create a block of code that executes for an index path of multiple array. I know this is probably quite weird, but any help would be great.</p>
  
  <p>Here is how I was doing it for every object of a <strong>single</strong> array:</p>
  
  <pre><code>-(void)savePeroid {
  
      [self.periodArray enumerateObjectsUsingBlock:^(id object, NSUInteger idx, BOOL *stop) {
          if (self.navigationItem.rightBarButtonItem.tintColor == [UIColor redColor]) {
              NSURL *url = [NSURL URLWithString:@"http://localhost:3000/"];
              AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:url];
  
              NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
                                      object, @"period[name]",
                                      nil];
              NSMutableURLRequest *request = [httpClient requestWithMethod:@"POST"
                                                                      path:@"api/period"
                                                                parameters:params];
              AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
  
                  NSLog(@"ID: %@", [JSON valueForKeyPath:@"id"]);
              } failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) {
                  NSLog(@"Request Failure Because %@",[error userInfo]);
              }];
  
              [operation start];
          }
      }];
  
      [self saveSubject];
  }
  </code></pre>