Open vishaltps opened 5 years ago
I used gem act_as_taggable in my project. Below is my model
gem act_as_taggable
post.rb
acts_as_taggable_on :moods has_many :taggings, as: :taggable, dependent: :destroy
It is working fine, but the only issue is taggings_count field of tags count isn't updating.
taggings_count
Am I missing something to add any extra config? Because as per my understanding it should update automatically
I resolved this issue, We don't need to write has many association of taggings. I removed below association and everything is working fine now.
has_many :taggings, as: :taggable, dependent: :destroy
I used
gem act_as_taggable
in my project. Below is my modelpost.rb
It is working fine, but the only issue is
taggings_count
field of tags count isn't updating.Am I missing something to add any extra config? Because as per my understanding it should update automatically