title: Parse a string as if it were a querystring in Ruby on Rails
body: <p>I have a string like this:</p>
  
  <pre><code>"foo=bar&amp;bar=foo&amp;hello=hi"
  </code></pre>
  
  <p>Does Ruby on Rails provide methods to parse this as if it is a querystring, so I get a hash like this:</p>
  
  <pre><code>{
      :foo =&gt; "bar",
      :bar =&gt; "foo",
      :hello =&gt; "hi"
  }
  </code></pre>
  
  <p>Or must I write it myself?</p>
  
  <h3>EDIT</h3>
  
  <p>Please note that the string above is not a real querystring from a URL, but rather a string stored in a cookie from Facebook Connect.</p>