Rails tutorial on events.