Ruby on rails 4 通过简单的身份验证和设计实现Ember Rails身份验证

Ruby on rails 4 通过简单的身份验证和设计实现Ember Rails身份验证,ruby-on-rails-4,ember.js,devise,ember-simple-auth,Ruby On Rails 4,Ember.js,Devise,Ember Simple Auth,从这本指南开始,我已经尝试了一切 但它仍然不起作用。当我试图访问受身份验证令牌保护的页面时,服务器会给我“unauthorized 401”。这里 这是我的服务器端和客户端代码。非常感谢。class ApplicationController

从这本指南开始,我已经尝试了一切

但它仍然不起作用。当我试图访问受身份验证令牌保护的页面时,服务器会给我“unauthorized 401”。这里

这是我的服务器端和客户端代码。非常感谢。

class ApplicationControllerclass ApplicationController < ActionController::Base
  before_filter :authenticate_user_from_token!

  # Enter the normal Devise authentication path,
  # using the token authenticated user if available
  #before_filter :authenticate_user! <-----you dont need this line...delete or comment it out
在\u筛选器之前:从\u令牌验证\u用户\u! #输入正常的设计验证路径, #使用令牌身份验证用户(如果可用)
#过滤前:验证用户身份!请将您的HTTP请求从控制台粘贴,请考虑添加到您的问题,而不是链接到外部站点。请参阅:帮助他人重现问题部分。