Chris Kampmeier wrote:
> On Jul 31, 4:44 pm, "Michael Koziarski" <[EMAIL PROTECTED]> wrote:
>   
>> Sounds a little too tricky for my liking.  What we really want is a
>> way for people to provide a prefix for their collection actions so
>> that we can distinguish these two cases
>>
>> /users/the-prefix/popular
>> /users/mr-popular
>>     
>
> I've used this before and it seems to make sense:
>
> /users/all/popular
> /users/mr-popular
>
> cheers,
> kampers
>   
This seems to be really good solution. There is no need for edge cases 
or tricky tricks and all you need is reserve one username (the same way 
you'd reserve things like 'root', 'admin', etc.)

/users/special/popular
/users/special/badass
/users/special/smartass
/users/tom
/users/koz
/users/chris


Using the name "special" reminds me of Wikipedia's "Special:" namespace :-)

And the URLs are hackable too (/users/special will list pages that are 
'special', just the same way the Wikipedia "Special" homepage says)

-- 
Hendy Irawan
www.hendyirawan.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to