params = {:a => "a", :b => "thisisb", :c => "c", :d => "thiswasb", :e => "34" }

opts = {}
...

Ruby Passing hashed arguments

by jalapinto.myopenid.com, May 20, 2010 23:16, 7 refactorings

I only want the keys :a, :b...

55502f40dc8b7c769880b10874abc9d0 Talk
params = {:a => "a", :b => "thisisb", :c => "c", :d => "thiswasb", :e => "34" }

opts = {}
...

Ruby Passing hashed arguments

by jalapinto.myopenid.com, May 20, 2010 23:16, 3 refactorings

I only want the keys :a, :b...

55502f40dc8b7c769880b10874abc9d0 Talk
arr = []
b={:a => "option1", :b => "option2"}
b.each_pair{ |key,value| arr << "#{key}=#{value}" }
...

Ruby HTML query string

by jalapinto.myopenid.com, April 29, 2010 00:04, 5 refactorings, tagged with ruby, html, query, params

Trying to create the query ...

55502f40dc8b7c769880b10874abc9d0 Talk