almost working with tut-http://jes.al/2013/08/authentication-with-rails-devise-and-angularjs/