Pregunta

I Followed the answer to my previous question -> Connect Twitter Account to existing Devise Account

but getting a

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 ?

¿Fue útil?

Solución

Authorization model missing or relation between Authorization and User is missing.

User should have many authorizations, authorization belongs to user.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top