scoping devise
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user