What does 'filter chain halted' mean

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

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…

On Feb 2, 5:52 pm, Philip H. [email protected] wrote:

Filter chain halted as [#<Proc:0xb7a71180@/usr/lib/ruby/gems/1.8/gems/
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?

My understanding is that the log message is simply telling you that one of
get that, my before_filter kicked in, and said I wasn’t allowed to
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

What does:

[authenticated] returns false" and I’m forwarded to the login page. I
I’m logged in (which are the only before_filter’s I have), and the
-philip
The 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.