I want to redirect a user if a condition is true: class ApplicationController < ActionController::Base @offline = 'true' redirect_to :…