Skip to content

Instantly share code, notes, and snippets.

@lorenzosinisi
Created June 2, 2015 08:02
Show Gist options
  • Save lorenzosinisi/3561ec6d00e2e056cc85 to your computer and use it in GitHub Desktop.
Save lorenzosinisi/3561ec6d00e2e056cc85 to your computer and use it in GitHub Desktop.
Faraday example code for a Rails action
def self.get(url, params)
conn = Faraday.new
response = conn.get url + "?" + params, {}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment