rails + angularJS: very rough