How to refactor "/blog/2004/12/25" to REST?


#1

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.


#2

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.