Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.