Method: Hash#to_query_string
- Defined in:
- lib/contacts/hash_ext.rb
#to_query_string ⇒ Object
3 4 5 6 7 8 |
# File 'lib/contacts/hash_ext.rb', line 3 def to_query_string u = ERB::Util.method(:u) map { |k, v| u.call(k) + "=" + u.call(v) }.join("&") end |