Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下班级模型
class FooBar { } http://localhost:3000/foo_bars/
访问上述对象。我应该/foobars or /foo_bars用来访问上述对象吗
/foobars or /foo_bars
你应该使用/foo_bars. 您将有一个名为的控制器FooBarsController和 resources :foo_bars您的 routes.rb 文件中的一行,它将获得一条/foo_bars路线。
/foo_bars
FooBarsController
resources :foo_bars