Rails port of Textism's Refer or similar?

Not that I have tried this, but there is a "request" hash that hold all the values you could ever want. It should be easy to create a model and controller to store the information you want and call a :before filter in your application to trigger it.