1

I'm encountering a very strange problem: my delete actions in rails don't work anymore.

Even if I create everything by the scaffold command, every click on delete just sends me to the show view of the object, which should be deleted.

script/generate scaffold myitem description:text

This isn't only in one project, but extends to new projects I create. Any idea, where this is coming from? Or better: Any idea how to fix this?

(the only thing I can think of, is that some plugin broke my installation, I installed paperclip, but don't know how to uninstall it: where are my plugins?)

Community
  • 1
  • 1
Roland Studer
  • 4,315
  • 3
  • 27
  • 43

5 Answers5

1

Removing link to jquery helped me.

Denis
  • 94
  • 6
0

I've seen this before (because I had the same problem). Perhaps this could help you:

Rails 3 :method=> :delete doesn't work in Internet Explorer

Community
  • 1
  • 1
beyeran
  • 885
  • 1
  • 8
  • 26
0

You should be able to look in the log file to see what SQL is being generated for the delete, and what error it is being generated.

Jason
  • 86,222
  • 15
  • 131
  • 146
0

Actually the problem was probably Firefox. When I clicked on Answer you own question here on Stackoverflow, I had the very same problem: My request, wasn't processed properly. I was sent back to the normal question view, without having the ability to submit my own answer.

So after a restart of Firefox everything worked fine.

(I also reinstalled Ruby and Rails at the same time, so I can't be sure, if it was Firefox for sure).

Roland Studer
  • 4,315
  • 3
  • 27
  • 43
0

I follow this blog step by step and solve it!

TLP
  • 66,756
  • 10
  • 92
  • 149