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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2010-Sep-07 13:43 UTC
Re: Rails 3 and Controller Instance Variables Inside a Helper
i think the dont require the @ anymore , try it out, it was like that with the request, it no longer requires @ at its beginning On Mon, Sep 6, 2010 at 8:46 PM, Mat <mat-z7ZJfaczS54AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks but that didn''t do it unfortunately. On Sep 7, 2:43 pm, radhames brito <rbri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i think the dont require the @ anymore , try it out, it was like that with > the request, it no longer requires @ at its beginning > > > > On Mon, Sep 6, 2010 at 8:46 PM, Mat <m...-z7ZJfaczS54AvxtiuMwx3w@public.gmane.org> wrote: > > 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/debu... > > 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. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.