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 ```