method
after_filter
v2.0.3 -
Show latest stable
- Class:
ActionController::Filters::ClassMethods
after_filter(*filters, &block)public
Alias for #append_after_filter
1Note
:only, :except and passing in multiple parameters
To specify that the filter should be applied to or excluded from given controller actions, use the :only and :except parameters. To pass in multiple controller actions use an array:
after_filter :authorize, :except => [:index, :show]
after_filter :authorize, :only => :delete
Stolen from: http://apidock.com/rails/ActionController/Filters/ClassMethods/before_filter