Rails app with angular js and mongodb