Stop id from showing in the address bar

Hi All,
I am passing ‘cid’ in the url as:
http://test.com:3000/test/do_test?cid=10

How can I stop the ‘cid’ from showing in the address bar?

Thanks in advance.

On 19 Aug 2008, at 09:28, Vidya Ramachandren wrote:

I am passing ‘cid’ in the url as:
http://test.com:3000/test/do_test?cid=10

How can I stop the ‘cid’ from showing in the address bar?

  1. Look at routes.rb in the config/ folder, there’s examples there. If
    you still don’t get it, look up routing in the API.
  2. If you really don’t want the ID in there, don’t include it in url,
    but put a hidden field in a form and post it (although i really don’t
    see a point in doing so).
  3. Get a book on rails and be enlightened :wink:

Best regards

Peter De Berdt

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs