Stackable URLs


Here’s my problem…

Suppose you have a page that lists some data. You also have some URLs
that can be used to filter that data.

Lets say you have a few links that filter by type. When you click on
them you get URLs like this one:

Then you click on a link that filters by date. When you click on this
url you would normally get something like this:

But since I previously clicked on another URL I want to get something
like this:

Then if I click on a different URL that sorts by type I want to get
something like this:

Well, I think you get the idea.

Something like this can be seen at Yahoo Finance:

How would I be able to achieve something like this in Rails. The easier
the better :wink:

Many thanks in advance,