From 5b9732dfa0290825e41fd56630007e168508f54e Mon Sep 17 00:00:00 2001 From: Luis Romero Date: Wed, 24 Jan 2024 10:58:03 -0500 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e8fccc..1dd27a2 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ class ApplicationController < ActionController::Base def require_user! return if current_user save_passwordless_redirect_location!(User) # <-- optional, see below - redirect_to root_path, error: "You are not worthy!" + redirect_to root_path, alert: "You are not worthy!" end end ``` @@ -237,7 +237,7 @@ class ApplicationController < ActionController::Base def require_user! return if current_user save_passwordless_redirect_location!(User) # <-- this one! - redirect_to root_path, flash: {error: 'You are not worthy!'} + redirect_to root_path, alert: "You are not worthy!" end end ```