Skip to content

Instantly share code, notes, and snippets.

@jmazzi
Forked from itspriddle/pick-me-im-the-one.rb
Created May 25, 2011 20:52
Show Gist options
  • Select an option

  • Save jmazzi/991939 to your computer and use it in GitHub Desktop.

Select an option

Save jmazzi/991939 to your computer and use it in GitHub Desktop.
required = [
:i,
:city,
:region,
:postal,
:country,
:license_key
]
optional = [
:domain,
:bin,
:binName,
:binPhone,
:custPhone,
:requested_type,
:forwardedIP,
:emailMD5,
:usernameMD5,
:passwordMD5,
:shipAddr,
:shipCity,
:shipRegion,
:shipPostal,
:shipCountry,
:textID,
:sessionID,
:user_agent,
:accept_language
]
params = Hash.new :optional => optional, :required => required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment