app/controllers/application_controller.rb
def add_to_session_history     
     ::SessionHistory.create(:session_id => session.id,
                         :request_uri => request.original_fullpath.split("?").first,
                         :request_method => request.method.to_s)

  end
# def redirect_exception(exception)
#   flash[:error] = "EXPO tried to redirect you back to the previous page, but there's no previous 
#                    page to redirect you back to. You're going to have to find your own way from here."
#   redirect_to root_url and return
# end
def redirect_exception(exception)
flash[:error] = "EXPO tried to redirect you back to the previous page, but there's no previous
page to redirect you back to. You're going to have to find your own way from here."
redirect_to root_url and return
end
def redirect_exception ( exception ) flash [ : error ] = " EXPO tried to redirect you back to the previous page but there ' s no previous page to redirect you back to . You ' re going to have to find your own way from here . " redirect_to root_url and return end
def add_to_session_history     
     ::SessionHistory.create(:session_id => session.id,
                         :request_uri => request.original_fullpath.split("?").first,
                         :request_method => request.method.to_s)
  end
def add_to_session_history :: SessionHistory . create ( :session_id => session . id , :request_uri => request . original_fullpath . split ( "?" ) . first , :request_method => request . method . to_s ) end
def redirect_exception(exception)
flash[:error] = "EXPO tried to redirect you back to the previous page, but there's no previous
page to redirect you back to.
def redirect_exception ( exception ) flash [ : error ] = " EXPO tried to redirect you back to the previous page but there ' s no previous page to redirect you back to .