Your are here: Home // Posts Tagged With before
ActiveRecord Callbacks
Podcast: Play in new window
| Download
You can get a full list of the ActiveRecord callbacks here.
Callbacks are a handy way of insuring specific behaviors on your models as well as managing the events that follow the callbacks.
For example, a before_destroy callback can be called to destroy associated objects. (This is best done on the association with :dependent => :destroy, but it makes...

