I’m making a quick application that tracks outgoing links to referral
sites. I need to track the user and the url they went to so the
easiest way would be to take the entire url as a parameter and log
that into the database. I was wondering if I could do something like
this with routing:

I’m making a quick application that tracks outgoing links to referral
sites. I need to track the user and the url they went to so the
easiest way would be to take the entire url as a parameter and log
that into the database. I was wondering if I could do something like
this with routing:

I want to create a program that automatically edits alll links on a
template to pass through a redirect action so that I can track a
users click through in a centralized affiliate program. The problem
I’m running into is that I basically am appending the entire url to
the end of the redirect url so I want rails routing to ignore the
path and leave it intact. So I tried out the following routing scenario:
map.connect ‘jump/:id/*path’, :controller => ‘jump’, :action =>
‘send_to’

But what ends up happening is I get path returned as an array that
was separated by ‘/’ and each of the items in the query string are
broken into individual params. Any one have any idea how to avoid
this? Or is there a better way?