Skip to content

Instantly share code, notes, and snippets.

@chadjemmett
Created April 13, 2013 15:01
Show Gist options
  • Save chadjemmett/5378745 to your computer and use it in GitHub Desktop.
Save chadjemmett/5378745 to your computer and use it in GitHub Desktop.
A method for rails where you can take a boolean and convert the true false to yes no.
def complete_yes_no
self.complete ? "Yes" : "No"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment