Created
February 27, 2009 10:33
-
-
Save thechrisoshow/71402 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# You can use a param variable in another params default value, like this: | |
def get_name(firstname, lastname, error_message="You blew it #{firstname}, you messed up") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment