Guest User

Untitled

a guest
Apr 26th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. ## core_ext/hash.rb line 89
  2.  
  3. # ==== Returns
  4. # String:: This hash as a query string
  5. #
  6. # ==== Examples
  7. # { :name => "Bob",
  8. # :address => {
  9. # :street => '111 Ruby Ave.',
  10. # :city => 'Ruby Central',
  11. # :phones => ['111-111-1111', '222-222-2222']
  12. # }
  13. # }.to_params
  14. # #=> "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