We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: