@media screen and (max-width: 39.9375em) {}
@media screen and (min-width: 40em) {}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {}
class TestController < ApplicationController | |
require 'colorize' | |
def index | |
result = Rails.env | |
puts result.class.to_s.colorize(:color => :black, :background => :green) | |
puts result.to_s.colorize(:color => :black, :background => :yellow) | |
render text: result | |
end | |
end |
con = Faraday.new(url: url, params: {}, headers: headers) do |faraday| | |
faraday.response :logger, nil, { headers: true, bodies: true } | |
faraday.adapter Faraday.default_adapter | |
end | |
if method_type == 'post' | |
con.post do |req| | |
req.body = request_body | |
end | |
else |
require 'rest-client' | |
RestClient.log = | |
Object.new.tap do |proxy| | |
def proxy.<<(message) | |
puts message | |
end | |
end |
https://medium.com/@bojanmajed/standard-json-api-response-format-c6c1aabcaa6d
{
"success": true,
"message": "User logged in successfully",
"data": { }
}