angularjs and ruby on rails integration practice