Is there any way to clear what''s in there? This happens any time flash[] is in my code. It can be setting or reading a value. I''ve tried commenting out all uses of flash in my code to get a few different pages to load, thinking this would clear the values, but no luck. If I get into the debugger, a p flash or pp flash will give a ''Stack level too deep'' error the first time, then ''{nil=>:monthly, :test=>"!!!"}'' Everything worked OK until I tried to use flash messages to pass info to a controller routine.. Bad Idea... Please Help Bob <bsm2th-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> -- 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.
On Dec 13, 12:23 am, Bob Smith <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there any way to clear what''s in there? > > This happens any time flash[] is in my code. It can be setting or > reading a value. > > I''ve tried commenting out all uses of flash in my code to get a few > different pages to load, thinking this would clear the values, but no > luck. > > If I get into the debugger, a p flash or pp flash will give a ''Stack > level too deep'' error the first time, then > ''{nil=>:monthly, :test=>"!!!"}'' > > Everything worked OK until I tried to use flash messages to pass info > to a controller routine.. Bad Idea... > > Please Help > > Bob <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>Well, the "flash hash" generally... works. Controller action code and the stack trace please. But from what you describe, sounds like some gem or plugin is mucking with things. -- 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.
On Dec 13, 12:23 am, Bob Smith <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there any way to clear what''s in there?Also, http://railsapi.com/ is a *fantastic* tool to search the Rails documentation. Just search for flash and you''ll find that method. -- 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.
You haven''t defined a flash method that calls flash have you? On Dec 13, 1:23 pm, Bob Smith <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there any way to clear what''s in there? > > This happens any time flash[] is in my code. It can be setting or > reading a value. > > I''ve tried commenting out all uses of flash in my code to get a few > different pages to load, thinking this would clear the values, but no > luck. > > If I get into the debugger, a p flash or pp flash will give a ''Stack > level too deep'' error the first time, then > ''{nil=>:monthly, :test=>"!!!"}'' > > Everything worked OK until I tried to use flash messages to pass info > to a controller routine.. Bad Idea... > > Please Help > > Bob <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>-- 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.
Finally got tired of playing with this.. A new project with the app, config, db, and public/stylesheets directories works fine.. Even rake tmp:clear wouldn''t get rid of those values.. Oh, well.. gone now :> Bob On Dec 13, 12:23 am, Bob Smith <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there any way to clear what''s in there? > > This happens any time flash[] is in my code. It can be setting or > reading a value. > > I''ve tried commenting out all uses of flash in my code to get a few > different pages to load, thinking this would clear the values, but no > luck. > > If I get into the debugger, a p flash or pp flash will give a ''Stack > level too deep'' error the first time, then > ''{nil=>:monthly, :test=>"!!!"}'' > > Everything worked OK until I tried to use flash messages to pass info > to a controller routine.. Bad Idea... > > Please Help > > Bob <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>-- 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.