Learning to use Angularjs in a rails app