Created
November 21, 2008 22:02
-
-
Save johnbender/27655 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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