the noob
6/23/2006 9:24:00 PM
Hello, I'm just starting with ruby-rails and having a weird issue.
Starting from a basic scaffolding I've altered the list method/view to
display a group of images. Im using file_column for file handling.
Since I got the basics working I've had an issue with items
disappearing off my list. Now that i've learned to use the logs I see
that the destroy method is being called, but im not doing it. I have
protected the method with the :confirm option on the link and a
"before_filter :login_required" in the controller. So I'll be coding
away switching from my list view to another im working on over and over
and suddenly one of the images is gone. When I looked into it I see
that the record has been deleted from the database and file column has
done its thing and removed the image file from my file system. I can't
find other people complaining about this so I'm guessing i've made a
coding error. Any tips on how to troubleshoot this?
Probably unrelated but I have one other issue with the destroy method.
The link I use on my list view to call destroy has the :confirm option.
But when I test it I sometimes get an error saying the item is not
found. So I tried clicking the link and didn't do anything to the
confirm message that popped up. I checked my database and filesystem
and the entry is already gone. The logs indicate that the destroy
method was called. With the confirm dialog still onscreen. ??
I'm running on windows/apache 2/scgi. This issue has occured on cgi,
fcgi, and scgi.
Thanks for reading.