Flowdock
method

to_query

Importance_1
v2.3.8 - Show latest stable - 0 notes - Class: ActiveSupport::CoreExtensions::Array::Conversions
to_query(key) public

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"
Show source
Register or log in to add new notes.