未初始化的常量User :: Authorization | omniauth [英] uninitialized constant User::Authorization | omniauth
本文介绍了未初始化的常量User :: Authorization | omniauth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我按照上一个问题的答案 - > 将Twitter帐户连接到现有的设计帐户
I Followed the answer to my previous question -> Connect Twitter Account to existing Devise Account
但获取
NameError in Devise::Registrations#edit
uninitialized constant User::Authorization
app/models/user.rb:17:in `has_connection_with'
app/helpers/users_helper.rb:4:in `check_connection'
app/views/devise/registrations/edit.html.erb:57:in `_app_views_devise_registrations_edit_html_erb__1951492867192219113_70202479591960'
我试图修复它,但没有什么..我错过了什么?
I'm trying to fix it, but nothing.. What am i missing ?
推荐答案
授权
模型缺失或$ code之间的关系授权和用户
Authorization
model missing or relation between Authorization
and User
is missing.
用户
应该有许多授权
,授权
bel ongs到用户
。
User
should have many authorizations
, authorization
belongs to user
.
这篇关于未初始化的常量User :: Authorization | omniauth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文