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.
I think the solution is written here๐
https://github.com/plataformatec/devise/wiki/OmniAuth-with-multiple-models
ยฉ 2024 OneMinuteCode. All rights reserved.