Restful rails e front com o angularjs