Skip to content

Instantly share code, notes, and snippets.

@austinrfnd
Created November 17, 2009 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austinrfnd/237142 to your computer and use it in GitHub Desktop.
Save austinrfnd/237142 to your computer and use it in GitHub Desktop.
+ items.to_query
-
- def query(items)
- @query = ''
- items.each do |var|
- @query << "#{var.to_s}=" + eval("@#{var}") + "&" if eval("@#{var}")
- end
- URI.escape(@query)
- end
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment