Skip to content

Instantly share code, notes, and snippets.

@yelinaung

yelinaung/location

Created Jul 1, 2013
Embed
What would you like to do?
# Controller
def index
@locations = Location.all
respond_to do |format|
format.json { render json: @locations }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment