Client data with ruby on rails 4 and angular