# Want to hide the id value while redirecting to the browser

**URL:** <https://www.ruby-forum.com/t/want-to-hide-the-id-value-while-redirecting-to-the-browser/106837>\
**Category:** Rails\
**Created:** [June 14, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/want-to-hide-the-id-value-while-redirecting-to-the-browser/106837 "2007-06-14T15:06:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8dc957/32.png) [@guest](https://www.ruby-forum.com/u/guest)\
**Post date:** [June 14, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/want-to-hide-the-id-value-while-redirecting-to-the-browser/106837/1 "2007-06-14T15:06:50Z")

</div>

hi,

while redirecting i want to hide the passing value in redirect\_to. at  
present i am doing like this,

redirect\_to :controller=\>‘account’,:action=\>‘account\_step2’,:id=\>@acc.id

but this id should be hide, so is there any command to hide while  
redirecting, if its please let me know.

```
first i tried the hidden button after submitting the submit button,

```

like

```
   but this is not working for me, so if anybody knows please help

```

me.
