method

after_filter

rails latest stable - Class: ActionController::Filters::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

after_filter(*filters, &block)
public

1Note

:only, :except and passing in multiple parameters

maciejkowalski ยท Feb 9, 20121 thank

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