Can't find a route with an underscore or doesn't treat it properly

前端 未结 2 1480
时光取名叫无心
时光取名叫无心 2021-01-21 20:36

I have this in routes:

Rails.application.routes.draw do
  namespace :api do
    namespace :v3_4 do
      # .....

And the controller app/c

2条回答
  •  余生分开走
    2021-01-21 21:06

    The Ruby-Style-Guide helped me a lot to clarify these questions. Please see the naming section.

提交回复
热议问题