to_query(key)
Instance Public methods
Converts an array into a string suitable for use as a URL query string,
using the given key
as the param name.
['Rails', 'coding'].to_query('hobbies') # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding"
Please login to continue.