# Change context in Radius

**URL:** <https://www.ruby-forum.com/t/change-context-in-radius/178618>\
**Category:** Radiant CMS\
**Created:** [November 8, 2009, 3:15am UTC](https://www.ruby-forum.com/t/change-context-in-radius/178618 "2009-11-08T03:15:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [November 8, 2009, 3:15am UTC](https://www.ruby-forum.com/t/change-context-in-radius/178618/1 "2009-11-08T03:15:17Z")

</div>

Hi,

I’m writing an application and I define tags on the fly, depending on  
the model attributes and associations. If I have BlogPost that has\_many  
comments, I define tags for the BlogPost title, body, tags… and a  
“comments” tags as well, in order to access the collection.

the thing is: is there a way to create a new context for the comments  
collection?  
If the comments has an email field, I can’t access it with a simple tag  
like \<r:email /\> I must use the verbose \<r:attribute name=“email” /\>,  
which I don’t like at all.

Hopefully I’ve explained things enough 😛

Thanks.

---

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [November 8, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/change-context-in-radius/178618/2 "2009-11-08T12:10:58Z")

</div>

By the way, another option would be to have tag\_missing behave actually  
like method\_missing.

That means having access to the tag binding instead of just the tag  
name. That way I could access tag.locals and call methods on the  
association records.
