Skip to content

Instantly share code, notes, and snippets.

@Musfuut
Created December 29, 2009 00:31
Show Gist options
  • Save Musfuut/265060 to your computer and use it in GitHub Desktop.
Save Musfuut/265060 to your computer and use it in GitHub Desktop.
tog_data = "house"
get '/one/:word' do
tog_data = "mouse" # This works and sets tog_data to "mouse"
end
get '/two/:word' do
tog_data = params[:word] # This does not work, tog_data becomes private
end
get '/three/:word' do
temp = params[:word]
tog_data = temp # This also does not work, same as /two/:word
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment