Hey, this might be a silly question, and I''ve found the topic covered elsewhere, though not fully, also a search on Google didn''t answer my question. I see people talk about it, and something referencing it being a cache hit, but what does it mean? Does it mean it''s just rails telling me we''re serving from the cache instead? What does: Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/gems/ actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned false actually mean? Is it bad? Am I doing something wrong? It pops up, in what I believe a good way, when my before_filter notices someone accessing a page/action when not logged in, but the message above pops up when I''m getting the content I''m supposed to get --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Hey, this might be a silly question, and I''ve found the topic covered > elsewhere, though not fully, also a search on Google didn''t answer my > question. I see people talk about it, and something referencing it > being a cache hit, but what does it mean? > > Does it mean it''s just rails telling me we''re serving from the cache > instead? > > What does: > > Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/gems/ > actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned > false > > actually mean? Is it bad? Am I doing something wrong? > > It pops up, in what I believe a good way, when my before_filter > notices someone accessing a page/action when not logged in, but the > message above pops up when I''m getting the content I''m supposed to getMy understanding is that the log message is simply telling you that one of your filters returned false so it halted processing of the action.. the filter chain is simply all the various before_filters that get run... --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 2, 5:52 pm, Philip Hallstrom <r...-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote:> > Hey, this might be a silly question, and I''ve found the topic covered > > elsewhere, though not fully, also a search on Google didn''t answer my > > question. I see people talk about it, and something referencing it > > being a cache hit, but what does it mean? > > > Does it mean it''s just rails telling me we''re serving from the cache > > instead? > > > What does: > > > Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/gems/ > > actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned > > false > > > actually mean? Is it bad? Am I doing something wrong? > > > It pops up, in what I believe a good way, when my before_filter > > notices someone accessing a page/action when not logged in, but the > > message above pops up when I''m getting the content I''m supposed to get > > My understanding is that the log message is simply telling you that one of > your filters returned false so it halted processing of the action.. the > filter chain is simply all the various before_filters that get run...OK, so that means something went wrong somewhere? Right? The action gets processed. The page gets returned as it should, and my app is dozens of times speedier. (which is neat) When I''m trying to access action_cached content when I''m not logged in (and I should be), I get something like: "filter chain halted as [authenticated] returns false" and I''m forwarded to the login page. I get that, my before_filter kicked in, and said I wasn''t allowed to access what I wanted (as I shouldn''t). What''s returning false with my initial question? Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/ gems/ actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned false I''m logged in (which are the only before_filter''s I have), and the page is being returned nicely. I''m just not getting this. Does it always return false? And depending on *what* returned false decides if it should continue processing or not? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> On Feb 2, 5:52 pm, Philip Hallstrom <r...-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote: >>> Hey, this might be a silly question, and I''ve found the topic covered >>> elsewhere, though not fully, also a search on Google didn''t answer my >>> question. I see people talk about it, and something referencing it >>> being a cache hit, but what does it mean? >> >>> Does it mean it''s just rails telling me we''re serving from the cache >>> instead? >> >>> What does: >> >>> Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/gems/ >>> actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned >>> false >> >>> actually mean? Is it bad? Am I doing something wrong? >> >>> It pops up, in what I believe a good way, when my before_filter >>> notices someone accessing a page/action when not logged in, but the >>> message above pops up when I''m getting the content I''m supposed to get >> >> My understanding is that the log message is simply telling you that one of >> your filters returned false so it halted processing of the action.. the >> filter chain is simply all the various before_filters that get run... > > OK, so that means something went wrong somewhere? Right? The action > gets processed. The page gets returned as it should, and my app is > dozens of times speedier. (which is neat) > > When I''m trying to access action_cached content when I''m not logged in > (and I should be), I get something like: "filter chain halted as > [authenticated] returns false" and I''m forwarded to the login page. I > get that, my before_filter kicked in, and said I wasn''t allowed to > access what I wanted (as I shouldn''t). > > What''s returning false with my initial question? > > Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/ > gems/ > actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned > false > > I''m logged in (which are the only before_filter''s I have), and the > page is being returned nicely. > > I''m just not getting this. Does it always return false? And depending > on *what* returned false decides if it should continue processing or > not?Can you paste in your before_filter? Or perhaps at the very end of that method (assuming that if you get there things are "okay") put a "true" to make sure you''re returning true. -philip --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> On Feb 2, 10:31 pm, Philip Hallstrom <r...-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote: > > On Feb 2, 5:52 pm, Philip Hallstrom <r...-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote: > >>> Hey, this might be a silly question, and I''ve found the topic covered > >>> elsewhere, though not fully, also a search on Google didn''t answer my > >>> question. I see people talk about it, and something referencing it > >>> being a cache hit, but what does it mean? > > >>> Does it mean it''s just rails telling me we''re serving from the cache > >>> instead? > > >>> What does: > > >>> Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/gems/ > >>> actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned > >>> false > > >>> actually mean? Is it bad? Am I doing something wrong? > > >>> It pops up, in what I believe a good way, when my before_filter > >>> notices someone accessing a page/action when not logged in, but the > >>> message above pops up when I''m getting the content I''m supposed to get > > >> My understanding is that the log message is simply telling you that one of > >> your filters returned false so it halted processing of the action.. the > >> filter chain is simply all the various before_filters that get run... > > > OK, so that means something went wrong somewhere? Right? The action > > gets processed. The page gets returned as it should, and my app is > > dozens of times speedier. (which is neat) > > > When I''m trying to access action_cached content when I''m not logged in > > (and I should be), I get something like: "filter chain halted as > > [authenticated] returns false" and I''m forwarded to the login page. I > > get that, my before_filter kicked in, and said I wasn''t allowed to > > access what I wanted (as I shouldn''t). > > > What''s returning false with my initial question? > > > Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/ > > gems/ > > actionpack-1.12.5/lib/action_controller/filters.rb:226>] returned > > false > > > I''m logged in (which are the only before_filter''s I have), and the > > page is being returned nicely. > > > I''m just not getting this. Does it always return false? And depending > > on *what* returned false decides if it should continue processing or > > not? > > Can you paste in your before_filter? Or perhaps at the very end of that > method (assuming that if you get there things are "okay") put a "true" to > make sure you''re returning true. > > -philipThe problem isn''t with my filters, or so I recently discovered, from what I''ve cobbled together hunting for an answer, other people had (almost) the same question, and the typical response was that it''s normal ruby logging of a cache hit. (Correct me if i''m wrong). Thanks for your help, nonetheless. Sorry for wasting your time, buddy. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---