similar controller::layout functionality

hi folks, I need help with something, I got a controller and I want be
able to use a class method defined in ApplicationController as I do
with (let say) the 'layout' function
I'm new in Rails and Ruby but I know enough CakePHP to be aware of the
conventions a stuff like that

The way I'm doing it is creating a class method in
ApplicationController called authorize

#...ApplicationController
def self.authorized what = []
end
#...

and trying to do the following in (let say, BlogController)
#...BlogController
layout 'public'

authorize :all

def index
end
#...

but I'm getting this error:

undefined method `authorize' for #<BlogController:0x23322bc>

someone knows the right way of doing this?

thanks

forget it guys, it was a before_filter :authorize that I forgot to eliminate ^^
thanks