Forum: Ruby on Rails want to hide the id value while redirecting to the browser

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
46911700017303070d64f73b69bb04a8?d=identicon&s=25 Guest (Guest)
on 2007-06-14 15:06
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

<input type="submit" name="Submit" value="Next &gt;&gt;">
<input type="hidden" name="acc_id" value="<%=@acc.id %>">


       but this is not working for me, so if anybody knows please help
me.
This topic is locked and can not be replied to.