Let's say you need to handle the following action:
class UsersController < ApplicationController
def update
user = User.find(id)
result = update_user(user, attrs)
require 'faraday' | |
require 'uri' | |
data = { | |
:your_data => "YOUR DATA" | |
} | |
url = "some url" | |
response = Faraday.post(url) do |req| |