# Colons and semicolons in REST URIs

**URL:** <https://www.ruby-forum.com/t/colons-and-semicolons-in-rest-uris/122988>\
**Category:** Rails\
**Created:** [December 13, 2007, 8:56am UTC](https://www.ruby-forum.com/t/colons-and-semicolons-in-rest-uris/122988 "2007-12-13T08:56:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imobach\_GonzSSSSlez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/bbe5ce/32.png) [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Post date:** [December 13, 2007, 8:56am UTC](https://www.ruby-forum.com/t/colons-and-semicolons-in-rest-uris/122988/1 "2007-12-13T08:56:37Z")

</div>

Hi all,

In the book RESTful Web Services[1] (from O’Reilly) there’s a little  
section about URI design where it tells you to use “semicolons” or  
“commas” to separate pieces of information at the same level.

For example, suppose I’ve got a Message resource and I wanna take all  
the messages between two dates: ‘/messages/2007-12-01,2007-12-10’.

Does exist any “canonical” way to achieve this in Rails 2?

Thank you in advance.

[1] [http://www.oreilly.com/catalog/9780596529260/](http://www.oreilly.com/catalog/9780596529260/)

---

<div class="post-metadata">

**Author:** ![Imobach\_GonzSSSSlez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/bbe5ce/32.png) [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Post date:** [December 14, 2007, 12:08am UTC](https://www.ruby-forum.com/t/colons-and-semicolons-in-rest-uris/122988/2 "2007-12-14T00:08:21Z")

</div>

You can define routes like:  
/foo/:date1/:date2 and map it to ur controller and action. I don’t  
think it is possible to separate them by comma

Sent from my iPhone

On Dec 12, 2007, at 11:56 PM, “Imobach Gonzï¿½lez Sosa”  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Imobach\_GonzSSSSlez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/bbe5ce/32.png) [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Post date:** [December 15, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/colons-and-semicolons-in-rest-uris/122988/3 "2007-12-15T19:56:16Z")

</div>

Thank you. I thought I couldn’t 😛
