Colorblind wrote:
> (or call @model.attachment.destroy) - that should do the trick.
> 
> Doesn't work.

@model.destroy will destroy both the object and file from your storage 
system. If it does not, it means you have customized somewhere the 
behavior of the attachment. Using debugger should help you out and check 
out thoroughly your log files.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to