如何从哈希向 url 添加其他参数?例如:
parameters = Hash.new
parameters["special"] = '25235'
parameters["code"] = 62346234
http://127.0.0.1:8000/api/book_category/? %s 参数
require 'httparty'
require 'json'
response = HTTParty.get("http://127.0.0.1:8000/api/book_category/?")
json = JSON.parse(response.body)
puts json