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.

  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