Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## core_ext/hash.rb line 89
- # ==== Returns
- # String:: This hash as a query string
- #
- # ==== Examples
- # { :name => "Bob",
- # :address => {
- # :street => '111 Ruby Ave.',
- # :city => 'Ruby Central',
- # :phones => ['111-111-1111', '222-222-2222']
- # }
- # }.to_params
- # #=> "name=Bob&address[city]=Ruby Central&address[phones]=111-111-1111222-222-2222&address[street]=111 Ruby Ave."
Add Comment
Please, Sign In to add comment