More than 5 years have passed since last update.
routes.rbに
resources :hoges
を加えると上手く動作しました
Register as a new user and use Qiita more conveniently