How to embed multiple tags in Rails routes, like Stackoverflow.
Posted
by Craig
on Stack Overflow
See other posts from Stack Overflow
or by Craig
Published on 2010-03-29T17:09:47Z
Indexed on
2010/03/29
17:13 UTC
Read the original article
Hit count: 473
When one selects a Tag on stackoverflow, it is added to the end of the Url. Add a second Tag and it is add to the end of the Url after the first Tag, with a '+' delimiter. For example, http://stackoverflow.com/questions/tagged/ruby-on-rails+best-practices.
How is this implemented? Is this a routing enhancement or some logic contained in the TagsController? Finally, how does one 'extract' these Tags for filtering (assuming that they are not in the params[] array)?
© Stack Overflow or respective owner