Displaying 1 result from an estimated 1 matches for "bkpoint".
Did you mean:
appoint
2006 Mar 24
2
before_destroy not called
...te
Image.delete(params[:id])
redirect_to :action => "list"
end
The model :
class Image < ActiveRecord::Base
set_table_name "publish_images"
belongs_to :article
before_destroy :on_destroy
def delete
end
def on_destroy
breakpoint # never hit this bkpoint
end
end
--
Posted via http://www.ruby-forum.com/.