This is a rails application fully configured to work with the devise token auth gem.
You can see a live demonstration of this app, along with the ng-token-auth module for angular.js, here.
Documentation is available in the main repo for the devise token auth gem.