# Acts\_as\_taggable\_on - custom\_contexts not working

**URL:** <https://www.ruby-forum.com/t/acts-as-taggable-on-custom-contexts-not-working/195738>\
**Category:** Rails\
**Created:** [September 29, 2010, 11:28am UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-custom-contexts-not-working/195738 "2010-09-29T11:28:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtdp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71c47a/32.png) [@rtdp](https://www.ruby-forum.com/u/rtdp)\
**Post date:** [September 29, 2010, 11:28am UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-custom-contexts-not-working/195738/1 "2010-09-29T11:28:05Z")

</div>

Hello,

For my rails application i have declared questions model as  
acts\_as\_taggable\_on. For this i am using dynamic context tagging. For  
me Question.custom\_contexts which is expected to give list of contexts  
doesn’t work and returns empty array, though there are custom  
contexts.  
But after using Questioin.tag\_list\_on(:applications) and then trying  
to run Question.cutom\_contexts return [“applications”] array.(and so  
on for all other custom contexts.) What might be problem? Is this  
some kind of caching plugins uses or a bug?

---

<div class="post-metadata">

**Author:** ![rtdp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71c47a/32.png) [@rtdp](https://www.ruby-forum.com/u/rtdp)\
**Post date:** [September 29, 2010, 1:08pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-custom-contexts-not-working/195738/2 "2010-09-29T13:08:12Z")

</div>

Sorry,  
A correction - Question.tag\_list\_on(:applications) is wrong… i use  
Question.tag\_counts\_on(:application)
