Phone tutorial from angular website but implemented in rails