Example from Angularjs-rails book.