Does Rails 3 have a single route?

You used to do:

resources :posts, :singular => true

But I tried it in Rails, and it didn't work. Does anyone know a new way or workaround?

thank

+3
source share
1 answer

You can simply use the resource: post

You can check the manual section> for rail guides, I don’t know exactly how relevant they are, but I found them to be quite correct.

+2
source

Source: https://habr.com/ru/post/1742443/


All Articles