# Hash to URL

**URL:** <https://www.ruby-forum.com/t/hash-to-url/175514>\
**Category:** Rails\
**Created:** [September 15, 2009, 2:48am UTC](https://www.ruby-forum.com/t/hash-to-url/175514 "2009-09-15T02:48:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rereis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@rereis](https://www.ruby-forum.com/u/rereis)\
**Post date:** [September 15, 2009, 2:48am UTC](https://www.ruby-forum.com/t/hash-to-url/175514/1 "2009-09-15T02:48:25Z")

</div>

I have the following hash myhash  
{ “inter” =\> “team”, “shirt” =\> “stripe” }

desired output

inter=team&shirt=stripe

I tried url\_for myhash but got undefined method `url\_for’ for

thanks
