scoping devise

This commit is contained in:
2022-12-21 17:30:29 +02:00
parent 0398a20861
commit d6606f05bb
13 changed files with 38 additions and 41 deletions

View File

@ -4,7 +4,7 @@
Edit #{resource_name.to_s.humanize}
= form_for(resource, |
as: resource_name, |
url: registration_path(resource_name), |
url: main_app.registration_path(resource_name), |
html: { |
method: :put, |
class: "bg-white mb-4 px-8 pt-6 pb-8 rounded shadow-md" |
@ -40,5 +40,5 @@
= f.submit "Update", class: "button bg-blue-500 hover:bg-blue-700 font-bold text-white focus:outline-none py-2 px-4 rounded focus:shadow-outline w-full"
%p
Unhappy?
%span= button_to "Delete my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete
%span= button_to "Delete my account", main_app.registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete
= link_to "Back", :back