我没有结果想通了。 我有一个型号命名用户,并与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
我的应用程序是先进的,不想回去重构它,任何帮助会感激