views:

335

answers:

3

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?)

A: 

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
A: 

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
A: 

I'm having a very similar problem. I was using Google Chrome at first. I since tried with both Firefox and even IE, but the problem persists.

Brian Kessler