Skip to content

Instantly share code, notes, and snippets.

@johnbender
Created November 21, 2008 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbender/27655 to your computer and use it in GitHub Desktop.
Save johnbender/27655 to your computer and use it in GitHub Desktop.
class SomeController < ActionController::Base
before_filter :authenticate, :only => [:destroy]
def index
#index actions
end
def show
#index actions
end
def destroy
#destroy actions
end
private
def authenticate
#do some sort of authentication
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment