documentation for rails event handling

Added to documentation examples of simple event handling within rails 4