[openstreetmap/openstreetmap-website] Use turbo for the settings page to stop the URL changing (PR #5453)
Tom Hughes
notifications at github.com
Wed Jan 1 12:33:44 UTC 2025
This changes the user settings page to use turbo to fix the problem identified in https://github.com/openstreetmap/openstreetmap-website/pull/5449#issuecomment-2565252266 where the URL changes when submitting a settings page with errors.
It also fixes an issue where errors weren't moved from the `email` to the `new_email` attribute properly, and simplifies checking if errors are present.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5453
-- Commit Summary --
* Use turbo for the settings page to stop the URL changing
* Replace count.zero? with empty?
* Move errors from email to new_email properly
-- File Changes --
M app/controllers/accounts_controller.rb (4)
M app/controllers/concerns/user_methods.rb (5)
M app/views/accounts/edit.html.erb (2)
M test/controllers/accounts_controller_test.rb (8)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5453.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5453.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5453
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5453 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250101/b8c257f7/attachment.htm>
More information about the rails-dev
mailing list