結果が出ていないことがわかりました。Userという名前のモデルがあり、STIファンとアーティストのモデルには次のようになります。
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable, :confirmable, :lockable,
:recoverable, :rememberable, :trackable, :validatable, **:omniauthable**
end
と私の他のモデル
Class Artist < User end
Class Fan < User end
私のルート
devise_for :users
devise_for :artists
devise_for :fans
サーバーなどを実行しようとすると問題が発生し、このエラーが発生しました
Wrong OmniAuth configuration. If you are getting this exception, it means that either:
1) You are manually setting OmniAuth.config.path_prefix and it doesn't match the Devise one
2) You are setting :omniauthable in more than one model
3) You changed your Devise routes/OmniAuth setting and haven't restarted your server
私のアプリは高度で、戻ってリファクタリングしたくないので、どんな助けでも感謝します