Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Button sends always GET request instead of DELETE #106

Open
haideralidevs opened this issue Mar 25, 2023 · 2 comments
Open

Delete Button sends always GET request instead of DELETE #106

haideralidevs opened this issue Mar 25, 2023 · 2 comments
Labels

Comments

@haideralidevs
Copy link

haideralidevs commented Mar 25, 2023

⚠️ ArcticAdmin is a simple gem, if you found a bug, you can easily fix it and make a pull-request. 🙏 Thanks !

Describe the bug
Hi Teams, I am encountring an issue with DELTE record button which is sending always GET request instead of DELETE request, POST types request are running perfectly, can you please guide me a little bit how we can handle that. Thanks

NOTE
I am configuring arctic_admin using Webpacker

To Reproduce
Steps to reproduce the behavior:

  1. Go to a record show page, or at the index page actions (Delete button)
  2. Click on Delete button
  3. Instead of hitting DELETE request its going to GET request.

Expected behavior
My expected behaviour its must be call a DELETE request on delete button.

Screenshots
Screenshot from 2023-03-25 11-17-04

Desktop (please complete the following information):

  • OS: UBUNTU
  • Browser :chrome
  • Version: 20 LTS

yarn.lock

arctic_admin@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/arctic_admin/-/arctic_admin-4.1.0.tgz#3130e14ed91ed8ce7199ea4b32b0630142f1de01"
integrity sha512-IC/UUWEjTV6RF9o9y1sGzztV/e2dAQThrZH0OhiZlBJKSGYxw8XBauMHviZDh+Fgbn9/ogBbV+uomWx2IAqk5Q==

@cprodhomme
Copy link
Owner

hello @haideralidevs

Are you the problem come from arctic_admin ?
I don't reproduce the problem

Capture d’écran 2023-03-27 à 14 31 30

Wich version of active_admin do you use ?

@abr-storm
Copy link

abr-storm commented Jul 24, 2023

I ran into this issue using:

  • gem activeadmin 2.14.0
  • npm arctic_admin 4.2.2

Then attempting to upgrade npm @activeadmin/activeadmin from 2.13.1 to 2.14.0

On the earlier version of that package the delete links work like normal, but on the latter version they redirect to the record instead.

I couldn't figure out what exactly was causing it

For future reference it was this:
activeadmin/activeadmin#7947 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants