Skip to content

Instantly share code, notes, and snippets.

@Solnse
Created May 4, 2014 23:51
Show Gist options
  • Save Solnse/3bd72ea4f3bbe8b93515 to your computer and use it in GitHub Desktop.
Save Solnse/3bd72ea4f3bbe8b93515 to your computer and use it in GitHub Desktop.
params = {}
document.css('input').each do |input|
item = {}
item << { input.name => input.value }
params.push item
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment