Skip to content

Instantly share code, notes, and snippets.

@alan707
Created February 3, 2013 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alan707/4702052 to your computer and use it in GitHub Desktop.
Save alan707/4702052 to your computer and use it in GitHub Desktop.
clips controller
def show
@audio_clip = AudioClip.find(params[:id])
@client = Foursquare2::Client.new(:client_id => 'client_id', :client_secret => 'client_secret')
@audio_clip.fsvenue = @client.search_venues(:ll => '36.142064,-86.816086')
respond_to do |format|
format.html # show.html.erb
format.json { render json: @audio_clip }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment