Displaying 1 result from an estimated 1 matches for "publish_imag".
Did you mean:
publish_images
2006 Mar 24
2
before_destroy not called
...g to intercept delete call in my model but
before_destroy callback is never called...
Somebody knows why ?
Thanks
The controller :
def delete
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/.