From 95ca172d9d3e00cf7f5ede39b740eec94ef864d7 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Thu, 22 Sep 2011 10:25:07 -0500 Subject: [PATCH] Fixing API call for spots in the example app --- Example/Classes/Controllers/NearbySpotsViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/Classes/Controllers/NearbySpotsViewController.m b/Example/Classes/Controllers/NearbySpotsViewController.m index 3c5aecc..08b4069 100644 --- a/Example/Classes/Controllers/NearbySpotsViewController.m +++ b/Example/Classes/Controllers/NearbySpotsViewController.m @@ -70,7 +70,7 @@ [self.activityIndicatorView startAnimating]; self.navigationItem.rightBarButtonItem.enabled = NO; - [Spot spotsWithURLString:@"/spots/advanced_search" near:location parameters:[NSDictionary dictionaryWithObject:@"128" forKey:@"per_page"] block:^(NSArray *records) { + [Spot spotsWithURLString:@"/spots" near:location parameters:[NSDictionary dictionaryWithObject:@"128" forKey:@"per_page"] block:^(NSArray *records) { self.nearbySpots = [records sortedArrayUsingComparator:^ NSComparisonResult(id obj1, id obj2) { CLLocationDistance d1 = [[(Spot *)obj1 location] distanceFromLocation:location]; CLLocationDistance d2 = [[(Spot *)obj2 location] distanceFromLocation:location];