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

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.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs