Skip to content

Commit

Permalink
added line in gitignore to ignore bundle folder in vendor folder. rem…
Browse files Browse the repository at this point in the history
…oved ui code at bottom of registration/edit page to delete account. (#482)

Co-authored-by: Mason Roberts <[email protected]>
  • Loading branch information
2 people authored and ErinClaudio committed Mar 1, 2024
1 parent 6ae245f commit 5263ba7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Ignore bundler config.
/.bundle

# Ignore bundle folder in vendor
/vendor/bundle/*

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
Expand Down
21 changes: 0 additions & 21 deletions app/views/devise/registrations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,27 +65,6 @@
</div> <!--col-->
</div> <!--row-->

<!--cancel my account section-->
<div class="row mt-5">
<div class="col-md-6 mx-auto">
<h4 class="mb-2">Unhappy?</h4>
<p>Type 'goodbye' below then click the button to permanently delete your account.</p>

<div data-controller="delete">
<input type="text" data-action="input->delete#showButton"
data-delete-target="input" class="form-control mt-2">

<%= button_to "Delete my account", registration_path(resource_name),
class: 'btn custom-btn-pink mt-3 mb-3',
data: { confirm: 'Are you sure?',
turbo: 'false',
delete_target: 'button' },
method: 'delete',
disabled: true %>
</div>
</div>
</div> <!--row-->

</div><!--container-->
</section>
<% end %>
Expand Down

0 comments on commit 5263ba7

Please sign in to comment.