I have a simple "after_filter" that is supposed to remove "child" records from one table (folders_tbl) when the parent is deleted from another table (courses_tbl). It's not working. The "course" gets destroyed but the children "folders" do not. Filters aren't that complicated but I don't understand why this isn't working. I've included snipplets below. Any ideas?
**--course controller--** after_filter :courseCleanUp, :only => :delete
the :only needs to be the action_name (ie :destroy). I'd also
recommend that the controller know absolutely nothing about this (use
callbacks, :dependent => :destroy etc...)
Fred