Creating a GeoTargeting API with RESTful Services using Rails (Part 4)
Creating a GeoTargeting API with RESTful Services using Rails (Part 4)
Getting Data from AdWords table
Basically, this is the method (get_location) that retrieves the information from the AdWords table and allows us to send it back to the controller so the results can be shown to the user (by using a View or an AJAX method using JSON as we will see in the next part of this series)
def self.get_location(name, search_locations) scope = GeoTarget.active(name) if…
View On WordPress












