Created
November 18, 2017 22:18
-
-
Save allgenesconsidered/dbf5489dd8a06c776248c41b352286cf to your computer and use it in GitHub Desktop.
example_if_statement
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
def show | |
todo_id = params[:id] | |
if todo_id == '1' | |
@todo_description = "Make the curriculum" | |
@todo_pomodoro_estimate = 4 | |
elsif todo_id == '2' | |
@todo_description = "Buy workshop supplies" | |
@todo_pomodoro_estimate = 3 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment