My code creating app from book https://leanpub.com/angularjs-rails