Chris,
It's not the most elegant solution (though only one line) but the
following should work, no?
map.connect 'users/:action', :controller => 'users', :requirements =>
{ :action => %w(popular unpopular reallybadass) }
map.resources :users
Zack
On 7/31/07, Michael Koziarski <[EMAIL PROTECTED]> wrote:
>
> > Naah..my above post doesn't make sense.
> >
> > May be /users/popular?collection should force going to collection
> > method. So if you do something like :
> >
> > popular_users_url(:force_collection => true) - it should generate the above
> > url.
>
> 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
>
>
> --
> Cheers
>
> Koz
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---