Application with Ruby on Rails and AngularJS