我正在开发一个Rails应用,用户可以在其中跟踪tag。我正在使用acts_as_taggable和acts_as_follower,但我不知道如何继续。 用户模式: class User < ApplicationRecord
acts_as_follower
end
帖子模式 class Post < ApplicationRecord
belongs_to :user
act
我在色器件创建一个User模型: class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authen
在我的项目我使用acts_as_follower宝石,以实现用户 所以在我的User类中的后续/未追踪功能,我有 class User < ApplicationRecord
...
acts_as_follower
acts_as_followable
...
end
但在db表Follow,该follower_type是User(这是正确的),而f