class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception #This needs to be put inside a config file. but this is good for now #This only requires the password for the admin section of the website http_basic_authenticate_with name: "admin", password: "password" end