title: Append query string to url
body: <p>I have a callback url string <code>params[:callback]</code> and I need to append a query string <code>"&amp;result=true"</code> and redirect the user. The better way I found of doing this is using <code>addressable</code> but I think the code is too big for task like this especially when we are talking about ruby:</p>
  
  <pre><code>callback = Addressable::URI.parse(params[:callback])
  query = callback.query_values
  query[:result] = 'true'
  callback.query_values = query
  
  redirect_to callback.to_s
  </code></pre>
  
  <p>Is there a more elegant way of getting the same result as this snippet?</p>