Thanks for your feedback Fred.

I should have added that I'm using very old Ruby (1.8.7) and Rails 
(2.2.2) versions.

Also, I tried to make my example as simple as possible. In reality, it 
is a little more complicated.

The error is that...

...if I invoke an action on the UserController which is implemented in 
its base controller, even if the base controller has a before_filter 
excluding auth_check to run for that action it will still be run unless 
UserController explicitly excludes the auth_check from running for the 
inherited action.

I've been debugging this and can see that the debugger first processes 
BaseController.before_filter followed by UserController.before_filter 
but I don't know how the filters are stored and chained. I think that is 
where the problem is.

Pete

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1f21ceed3279195fbb7c8b2a4b546857%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to