From 1cb2f69786c888b7637fd572e149e7d274ff81da Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Sun, 4 Oct 2026 20:23:44 -0400 Subject: [PATCH] Compile the PWA help and account settings through Herb Rails main compiles HTML templates through Herb under the 8.2 framework defaults, which Campfire loads. Herb rejects `case` and its first `when` in a single ERB tag, so the three pwa/ partials failed to compile, and `herb:check` rejects ERB output in attribute names, which the account settings' switch used for `checked`. Give `case` its own tag and build the switch with tag.input; both render the same under Erubi. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 244e77241bd2d9e973f5a8dcca0cf8230f81176a) --- app/views/accounts/edit.html.erb | 7 +++---- app/views/pwa/_browser_settings.html.erb | 4 ++-- app/views/pwa/_install_instructions.html.erb | 4 ++-- app/views/pwa/_system_settings.html.erb | 4 ++-- test/controllers/accounts_controller_test.rb | 10 ++++++++++ test/controllers/rooms_controller_test.rb | 15 +++++++++++++++ 6 files changed, 34 insertions(+), 10 deletions(-) diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index cfa750d..f2d1ae8 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -76,10 +76,9 @@ <% end %>