Created
April 18, 2012 21:08
-
-
Save gvalmon/2416579 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
#1 ПЛОХО! | |
def UsersController | |
actions :index, :create | |
def update | |
end | |
def destroy | |
end | |
end | |
#2 ХОРОШО! | |
def UsersController | |
actions :index, :create, :update | |
end | |
#3 ХОРОШО! | |
def UsersController | |
action :index | |
action :create | |
action :update | |
end | |
#4 ХОРОШО! | |
def UsersController | |
def index | |
end | |
def create | |
end | |
def update | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment