This can be done more idiomatically with http://guides.rubyonrails.org/v3.2.14/routing.html#adding-more-restful-actions