From 0a2c010cc7b902fd34674a0e6d9430620974d759 Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Sun, 7 Dec 2025 01:14:27 -0500 Subject: [PATCH] Fix button_to syntax for Rails 8 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed "undefined method stringify_keys for String" error caused by incorrect button_to syntax when using block form. Changes: - Remove text argument from button_to when using block - Block content becomes button text in Rails 8 syntax - Correct syntax: button_to url, options do ... end - Incorrect syntax: button_to "text", url, options do ... end This fixes the NoMethodError on the login page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/views/layouts/shared/_header.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/shared/_header.html.erb b/app/views/layouts/shared/_header.html.erb index 09637f4..7cd022f 100755 --- a/app/views/layouts/shared/_header.html.erb +++ b/app/views/layouts/shared/_header.html.erb @@ -81,7 +81,7 @@
- <%= button_to "Tutorial Credentials", "#", { + <%= button_to "#", { id: "show_creds_btn", class: "btn btn-sm btn-warning", method: "get",