Following tutorial at angular-rails.com