title: Rails add parameter to each URL in the application
body: <p>I would like to add a parameter to <strong>each</strong> URL in my Rails 2.3.10 application. I played with the <code>default_url_options</code> but I want the parameter to be visible in the URL. Something like:</p>
  
  <pre><code>http://&lt;server&gt;/posts?token=XYZ
  </code></pre>
  
  <p>I'm building an affilate tracking system and I want people to share the link and be able to track who's link was used later when someone clicks it (to give points to the guy who shared the link). Any hints how I can add a visible parameter in <strong>each</strong> URL used in the application?</p>
  
  <p>Thanks!</p>