Rails, MongoDB, Angular Template