Example code from the Angular Rails book