# Rails 3 and Controller Instance Variables Inside a Helper

**URL:** <https://www.ruby-forum.com/t/rails-3-and-controller-instance-variables-inside-a-helper/226076>\
**Category:** Rails\
**Created:** [September 7, 2010, 9:16am UTC](https://www.ruby-forum.com/t/rails-3-and-controller-instance-variables-inside-a-helper/226076 "2010-09-07T09:16:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 7, 2010, 9:16am UTC](https://www.ruby-forum.com/t/rails-3-and-controller-instance-variables-inside-a-helper/226076/1 "2010-09-07T09:16:53Z")

</div>

In my Rails 2.x applications i could access controller instance  
variables happily inside my application\_helper.rb but with 3.0 that is  
no longer the case.

Specifically I’m attempting to access the special controller instance  
variables that are described in  
[http://github.com/rails/rails/blob/master/railties/guides/source/debugging\_rails\_applications.textile](http://github.com/rails/rails/blob/master/railties/guides/source/debugging_rails_applications.textile)  
namely: @\_response, @action\_name, @url, @\_session, @\_cookies,  
@performed\_render, @\_flash, @template, @\_params,  
@before\_filter\_chain\_aborted, @request\_origin, @\_headers,  
@performed\_redirect, @\_request

What’s up here? Usually Google is my friend here but nobody who has  
reported this elsewhere (like on Stack Overflow) seems to have found  
an answer.

Thanks in advance.

M.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 7, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/rails-3-and-controller-instance-variables-inside-a-helper/226076/2 "2010-09-07T15:43:57Z")

</div>

i think the dont require the @ anymore , try it out, it was like that  
with  
the request, it no longer requires @ at its beginning

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 7, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/rails-3-and-controller-instance-variables-inside-a-helper/226076/3 "2010-09-07T20:26:11Z")

</div>

Thanks but that didn’t do it unfortunately.
