Skip to content

Instantly share code, notes, and snippets.

@markprovan
Created June 14, 2012 22:07
Show Gist options
  • Save markprovan/2933270 to your computer and use it in GitHub Desktop.
Save markprovan/2933270 to your computer and use it in GitHub Desktop.
Businesses Controller
class BusinessesController < ApplicationController
def index
@businesses = JSON.parse("http://209.61.142.61/api/businesses.json")
end
def show
@business = JSON.parse("http://209.61.142.61/api/businesses/2.json")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment