Module: URLEncodedFormData
- Defined in:
- lib/lyrics/utils/formdata.rb
Class Method Summary collapse
Class Method Details
.prepare_query(params) ⇒ Object
23 24 25 26 27 |
# File 'lib/lyrics/utils/formdata.rb', line 23 def URLEncodedFormData.prepare_query( params ) query = params.collect { |name, value| "#{name}=#{CGI.escape( value.to_s() )}" }.join( "&" ) header = { "Content-type" => "application/x-www-form-urlencoded" } return query, header end |