# Combining tags in URLs

**URL:** <https://www.ruby-forum.com/t/combining-tags-in-urls/99942>\
**Category:** Ruby\
**Created:** [February 1, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/combining-tags-in-urls/99942 "2006-02-01T23:06:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MidtownNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@MidtownNinja](https://www.ruby-forum.com/u/MidtownNinja)\
**Post date:** [February 1, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/combining-tags-in-urls/99942/1 "2006-02-01T23:06:47Z")

</div>

Hello,

I had seen an example on a blog entry about how to combine multiple  
tags in the URL of a Web application that I think was written in Ruby  
on Rails. In the example there were two kinds of URLs:

[http://foo.bar.com/tag/nyc/losangeles/chicago](http://foo.bar.com/tag/nyc/losangeles/chicago) would return a list of  
items tagged ‘nyc’ AND ‘losangeles’ AND ‘chicago’

[http://foo.bar.com/tag/nyc+losangeles+chicago](http://foo.bar.com/tag/nyc+losangeles+chicago) would return a list of  
items tagged ‘nyc’ OR ‘losangeles’ OR ‘chicago’

I would like to implement something similar for a Web application. Has  
anyone seen this example or alternatively, can someone outline how I  
could do this (with reference to what kinds of routes I’d put in  
${APPROOT}/config/routes.rb).

Many thanks for your help in advance.

Vishy.
