Skip to content

Instantly share code, notes, and snippets.

@judofyr
Created April 20, 2011 12:39
Show Gist options
  • Save judofyr/931224 to your computer and use it in GitHub Desktop.
Save judofyr/931224 to your computer and use it in GitHub Desktop.
e = ERB.new('views/index.erb')
get '/erb/:username' do
@var = "Hello #{params[:username]}"
e.result(binding)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment