Code Demo from angular-rails.com