Create multiple models in device and apply omniauth-facebook to each

Asked 2 years ago, Updated 2 years ago, 137 views

I was able to create multiple models (teacher.rb/student.rb) using the device.
Also, I would like to implement omniauth using omniauth-facebook, but the device's omniauthable conflicts and does not work.
In this case, what is the appropriate approach?
What do you think of creating the third model omniuser.rb and concentrating the process on it?
I would like to know the method and the website that I can refer to.
Thank you for your cooperation.

ruby-on-rails devise

2022-09-30 21:11

1 Answers

I think the solution is written here๐Ÿ‘
https://github.com/plataformatec/devise/wiki/OmniAuth-with-multiple-models


2022-09-30 21:11

If you have any answers or tips


ยฉ 2024 OneMinuteCode. All rights reserved.