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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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" <imobachgs@gmail.co m> wrote:> > 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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you. I thought I couldn''t :P --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---