Created
February 17, 2014 19:56
-
-
Save chrisscherer/9057828 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
get '/' do | |
@grandma = params[:grandma] | |
# Look in app/views/index.erb | |
erb :index | |
end | |
post '/grandma' do | |
if params[:user_input] == params[:user_input].upcase | |
redirect to('http://localhost:9393/?grandma=IN my day, we didn\'t ask questions or do anything because we\'re old, oh god where am I?') | |
else | |
redirect to('http://localhost:9393/?grandma=Speak up, kiddo') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment