Rails 3 and Controller Instance Variables Inside a Helper

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
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.

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

Thanks but that didn’t do it unfortunately.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs