Skip to content

Instantly share code, notes, and snippets.

@chrisscherer
Created February 17, 2014 19:56
Show Gist options
  • Save chrisscherer/9057828 to your computer and use it in GitHub Desktop.
Save chrisscherer/9057828 to your computer and use it in GitHub Desktop.
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