Forum: Ruby on Rails Stackable URLs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Alexandru T. (Guest)
on 2006-04-05 22:08
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:
http://localhost/controller/action?type=SOMETYPE

Then you click on a link that filters by date. When you click on this
url you would normally get something like this:
http://localhost/controller/action?date=SOMEDATE

But since I previously clicked on another URL I want to get something
like this:
http://localhost/controller/action?type=SOMETYPE&?...

Then if I click on a different URL that sorts by type I want to get
something like this:
http://localhost/controller/action?type=SOMEOTHERT...

Well, I think you get the idea.

Something like this can be seen at Yahoo Finance:
http://finance.yahoo.com/q/ta?s=ERTS


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

Many thanks in advance,

Alex
This topic is locked and can not be replied to.