using rails4 and angularjs