From 13994ca6caa0e253856126fc8029d0e3140f1bfd Mon Sep 17 00:00:00 2001
From: Anton Khorev
Date: Thu, 2 Jan 2025 13:10:24 +0300
Subject: [PATCH] Use resourceful routes for user new/create actions
---
app/views/layouts/_header.html.erb | 2 +-
app/views/layouts/map.html.erb | 2 +-
app/views/notes/new.html.erb | 2 +-
app/views/site/fixthemap.html.erb | 2 +-
config/routes.rb | 4 +-
.../confirmations_controller_test.rb | 26 +++++------
test/controllers/users_controller_test.rb | 46 +++++++++----------
test/integration/user_creation_test.rb | 38 +++++++--------
8 files changed, 60 insertions(+), 62 deletions(-)
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb
index 322b738ec..45e23fc2b 100644
--- a/app/views/layouts/_header.html.erb
+++ b/app/views/layouts/_header.html.erb
@@ -111,7 +111,7 @@
<% else %>
<% end %>
diff --git a/app/views/layouts/map.html.erb b/app/views/layouts/map.html.erb
index 0630dace5..e17ea4ed8 100644
--- a/app/views/layouts/map.html.erb
+++ b/app/views/layouts/map.html.erb
@@ -51,7 +51,7 @@
<%= t ".anonymous_warning_html",
:log_in => link_to(t(".anonymous_warning_log_in"), login_path(:referer => new_note_path)),
- :sign_up => link_to(t(".anonymous_warning_sign_up"), user_new_path) %>
+ :sign_up => link_to(t(".anonymous_warning_sign_up"), new_user_path) %>
<% end %>