Skip to content

Commit

Permalink
fixing delete issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nnunn authored Jan 14, 2020
1 parent 91d574d commit deda645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/profiles/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
%h1 Edit Profile
= render 'form'

= link_to 'Delete this Profile', profile_path(@profile), method: :delete, data: { confirm: 'Are you sure you want to delete this profile?' }, :class => "btn btn-danger"
= button_to 'Delete this Profile', profile_path(@profile), method: :delete, data: { confirm: 'Are you sure you want to delete this profile?' }, :class => "btn btn-danger"

0 comments on commit deda645

Please sign in to comment.