rails 4 with angular, second aproach