using Angulars module ng-rails-csrf (http://ngmodules.org/modules/ng-rails-csrf)
using Angulars module angularjs-rails-resource (http://ngmodules.org/modules/angularjs-rails-resource) to work better with Rails