See http://guides.rubyonrails.org/routing.html#adding-more-restful-actions

I think you need that inside a `collection do` block within the resources declaration.