# Access to request object from within tags

**URL:** <https://www.ruby-forum.com/t/access-to-request-object-from-within-tags/83443>\
**Category:** Radiant CMS\
**Created:** [January 26, 2007, 3:04am UTC](https://www.ruby-forum.com/t/access-to-request-object-from-within-tags/83443 "2007-01-26T03:04:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaleb\_Walton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/779978/32.png) [@Kaleb\_Walton](https://www.ruby-forum.com/u/Kaleb_Walton)\
**Post date:** [January 26, 2007, 3:04am UTC](https://www.ruby-forum.com/t/access-to-request-object-from-within-tags/83443/1 "2007-01-26T03:04:50Z")

</div>

First of all I’d like to say hello to everyone and congratulate the  
creators of this fine product. This CMS will work perfectly for my  
needs given a bit of customization so thank you for producing it -  
saves me a good deal of time.

I don’t see any way to access the request object from within tags -  
does it not make sense to expose it even though the resulting output  
may be cached? Basically I would like to create a link\_unless\_current  
tag that works within all page contexts.

I’ve tried to alter the site\_controller, behavior.rb and page\_context  
to allow it but the @request always nil’s out right when I want it to  
work :).

Regards,  
Kaleb

---

<div class="post-metadata">

**Author:** ![Kaleb\_Walton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/779978/32.png) [@Kaleb\_Walton](https://www.ruby-forum.com/u/Kaleb_Walton)\
**Post date:** [January 26, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/access-to-request-object-from-within-tags/83443/2 "2007-01-26T17:39:22Z")

</div>

ghjghjghjg
