Ruby on Rails Wednesday, August 31, 2011

7stud -- wrote in post #1019391:
> How about:
>
> match '/:id' => 'users/show'
> resources :users, :except=>[:destroy]

Sorry, that doesn't meet your requirements because both '/1' and
'/show/1' will match.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment