Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 运行时错误(找不到资源类)_Ruby On Rails_Omniauth_Omniauth Facebook_Devise Token Auth_Omniauth Google Oauth2 - Fatal编程技术网

Ruby on rails 运行时错误(找不到资源类)

Ruby on rails 运行时错误(找不到资源类),ruby-on-rails,omniauth,omniauth-facebook,devise-token-auth,omniauth-google-oauth2,Ruby On Rails,Omniauth,Omniauth Facebook,Devise Token Auth,Omniauth Google Oauth2,使用designe\u token\u authgem创建Rails API,并尝试使其能够通过google和facebook登录。以下是:-。此错误已注册,尚未找到解决方案。 我的错误:- `Started POST "/omniauth/facebook/callback" for 127.0.0.1 at 2019-03-12 13:26:08 +0530 Processing by DeviseTokenAuth::OmniauthCallbacksController#redirec

使用
designe\u token\u auth
gem创建
Rails API
,并尝试使其能够通过google和facebook登录。以下是:-。此错误已注册,尚未找到解决方案。 我的错误:-

`Started POST "/omniauth/facebook/callback" for 127.0.0.1 at 2019-03-12 13:26:08 +0530 
Processing by DeviseTokenAuth::OmniauthCallbacksController#redirect_callbacks as */* 
Parameters: {"provider"=>"facebook"} 
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)


   RuntimeError (No resource_class found):    
app/controllers/application_controller.rb:6:in 
`configure_permitted_parameters' 
现在,我的configure_-allowed_参数包含注册时需要的一些身体参数,不能忽略。
我应该采用什么技术/方法来忽略这个问题,并检查我的API以获得
designe:omniauthable

我正面临着完全相同的问题,您找到了解决方案吗?当做