Kevin Dangoor wrote:
> So, in a generic CRUD feature, what would you want your URLs to look like:
>
> 1) http://yoursite/articles/10/edit
> 2) http://yoursite/articles/edit/10
> 3) http://yoursite/articles/edit?id=10

I'm unable to make a choice between 1 and 2, definitely not the third
option.

>
> the advantage to the first one is that it makes view look like this:
> http://yoursite/articles/10

for the second it will look like this:

http://yoursite/articles/show/10

right?

For what is worth RoR scaffolding uses the second one (just checked it
from the screencast ;-)).

Ciao
Michele

Reply via email to