Hi all, how to refactor "/blog/2004/12/25" to REST? "/blogs;search?q=2004-12-25" isn''t more meansful than original. How should I do if I want to use full Resource-Based Routing? And is it good for refactoring all to REST. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> how to refactor "/blog/2004/12/25" to REST? > "/blogs;search?q=2004-12-25" isn''t more meansful than original./blog/2004/12/25 is a pretty RESTful URL. Just because it doesn''t match the Rails default of /resources/id doesn''t make it non-RESTful. I would tend towards "/posts/:year/:month/:day/:slug" where slug has the id as well, but your current one is fine. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---