Colons and semicolons in REST URIs

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/

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”
<[email protected]

Thank you. I thought I couldn’t :stuck_out_tongue: