Skip to content

Instantly share code, notes, and snippets.

@thechrisoshow
Created February 27, 2009 10:33
Show Gist options
  • Save thechrisoshow/71402 to your computer and use it in GitHub Desktop.
Save thechrisoshow/71402 to your computer and use it in GitHub Desktop.
# 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