Rails 4/ Ruby 2 / Angularjs