OtherActive

Active Record Callbacks

Guide to hooking into the Active Record object life cycle with callbacks.

Open source page ↗

Product features

Product features

1. Introduction

2. Rails Philosophy

3.1. Prerequisites

3.2. Creating Your First Rails App

3.3. Directory Structure

3.4. Model-View-Controller Basics

3. Creating a New Rails App

4.1. Autoloading in Development

4. Hello, Rails!

5. Creating a Database Model

after_commit and after_rollback

Transaction callbacks fired on commit or rollback.

Callback objects

Encapsulate common callback behavior in reusable objects.

Chapters

Getting Started with Rails

Halting execution

Stop the callback chain by throwing :abort.

Skipping callbacks

Methods to skip callbacks during execution.