parent
09eda4f4e0
commit
fa03c12ab4
@ -0,0 +1,3 @@
|
|||||||
|
<h1>Edit Account</h1>
|
||||||
|
|
||||||
|
<%= render "form", user: @user %>
|
@ -1,4 +1,8 @@
|
|||||||
<section class="user">
|
<section class="user">
|
||||||
<h1><%= @user.name %></h1>
|
<h1><%= @user.name %></h1>
|
||||||
<h2><%= mail_to(@user.email) %></h2>
|
<h2><%= mail_to(@user.email) %></h2>
|
||||||
|
<div class="actions">
|
||||||
|
<%= link_to "Edit Account", edit_user_path(@user), class: "button edit" %>
|
||||||
|
<%= link_to "Delete Account", user_path(@user), class: "button delete", data: { turbo_method: :delete, turbo_confirm: "Permanently delete your account!?" } %>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in new issue