From 7338099e244122740acf9e3ca6e9869dbdbd68e2 Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Wed, 14 Aug 2024 10:59:02 +0100 Subject: [PATCH] Lower on lookup too --- app/controllers/editors_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/editors_controller.rb b/app/controllers/editors_controller.rb index 14fd3cdc..11adefd3 100644 --- a/app/controllers/editors_controller.rb +++ b/app/controllers/editors_controller.rb @@ -24,7 +24,7 @@ def new end def lookup - editor = Editor.find_by_login(params[:login]) + editor = Editor.where("lower(login) = ?", params[:login].downcase).first if editor.url url = editor.url else