On 7/31/06, Caio Chassot <[EMAIL PROTECTED]> wrote:
> and then grep your RAILS_ENV.log for "called repeatedly"
So I tested this on an old app of mine and got this:
Filter :check_login called repeatedly
... only this one, a on a few certain pages
I dug in and it was due to code similar to example I first showed,
using:
before_filter :foo, :except => :bar
instead of
skip_before_filter :foo, :only => :bar
In this particular case this is concealed by a DSL-ish class method
(do_foo) that wraps the before_filter call.
I don't really think this issue will show up a lot, but I wonder
whether it's common that people end up using *_filter(:except) in
place of skip_*(:only)
I rarely put before filters in my application controller, and do very
little controller inheritance. I don't see this as an issue at all.
--
Rick Olson
http://techno-weenie.net
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core