# How to build a url like "http://localhost?profiles.name=abc"

**URL:** <https://www.ruby-forum.com/t/how-to-build-a-url-like-http-localhost-profiles-name-abc/115747>\
**Category:** Rails\
**Created:** [September 28, 2007, 5:48am UTC](https://www.ruby-forum.com/t/how-to-build-a-url-like-http-localhost-profiles-name-abc/115747 "2007-09-28T05:48:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ao\_tianlong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@ao\_tianlong](https://www.ruby-forum.com/u/ao_tianlong)\
**Post date:** [September 28, 2007, 5:48am UTC](https://www.ruby-forum.com/t/how-to-build-a-url-like-http-localhost-profiles-name-abc/115747/1 "2007-09-28T05:48:41Z")

</div>

rails url\_for may not support the “.” in the hash key.  
any idea?

thanks

---

<div class="post-metadata">

**Author:** ![ao\_tianlong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@ao\_tianlong](https://www.ruby-forum.com/u/ao_tianlong)\
**Post date:** [September 28, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/how-to-build-a-url-like-http-localhost-profiles-name-abc/115747/2 "2007-09-28T16:58:27Z")

</div>

hi tianlong,

if you write some thing like this it will work,  
in irb it’s working fine,  
x = { “profile.name” =\> “test” } # might be you are  
using :profile.name

and if this is key which you are sending from your form to controller,  
even then everything should work fine., as you know that html url will  
be escaped and sent  
to controller.

Sorry if this is not answering your problem, but it’s better if you  
post at-least some part of code.
