Questions tagged [delete-method]

34 questions
0
votes
1 answer

Django Delete an object via Post request

I want to delete an object via clicking on a glyphicon wrapped in a form. To do this, my function looks like this: def deleteHabit(request, id): print('deleteHabit') habit_to_delete = get_object_or_404(Habit, id=id) …
Texas
  • 559
  • 2
  • 6
  • 18
0
votes
0 answers

ajax "delete" method working in local but not in remote site [laravel]

I have a Kendo Ui grid in my laravel application. It uses laravel resource route for CRUD operation. Everything on kendo grid (read,create,update,destroy) works fine when the grid is accessed from localhost. But when i try from remote address…
Touhid
  • 303
  • 3
  • 8
0
votes
1 answer

Error with deleting several elements. Delete method. Single linked list

I made (with a little help) a single linked list, with C++, which sorts entered elements from least to greatest. I want to delete several elements from the same value, but the Delete method I use seems to be able to delete only one, when the code…
-1
votes
3 answers

Ruby delete method does not work

For my blog, the delete method doesn't work (edit, update, create... are fine). I already tried different ways of defining the link, but it all didn't help yet. Now at the moment, my html.erb code looks like the following:
<%=…
1 2
3