master
class ApplicationController < ActionController::Base protect_from_forgery def authenticate! redirect_to new_session_path if session[:admin].nil? end def not_found raise ActionController::RoutingError.new('Not Found') end end