nashirox
2/8/2018 - 1:16 PM

Basic認証

class ApplicationController < ActionController::Base
  http_basic_authenticate_with(name: ENV['BASIC_AUTH_USERNAME'], password: ENV['BASIC_AUTH_PASSWORD'])
end