Skip to content

Instantly share code, notes, and snippets.

@sycobuny
Created December 13, 2012 17:12
Show Gist options
  • Save sycobuny/4278033 to your computer and use it in GitHub Desktop.
Save sycobuny/4278033 to your computer and use it in GitHub Desktop.
Displaying loading a dynamic route via ENV, but with a default
require 'sinatra'
asdf = ENV['asdf'] || '/asdf'
get asdf do
'asdf'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment