I know member and collection is not same for resources.
but how about for resource. Are you use member and collection for resource?.
I found
resource :foo do
patch :confirm
end
and
resource :foo do
member do
patch :confirm
end
end
and
resource :foo do
collection do
patch :confirm
end
end
are Same.
Route => /foo/confirm(.:format)
Method => PATCH
Action => FoosController#confirm
Name => confirm_foo
No document for resource block, only about resources block.
Rails Routing from the Outside In — Ruby on Rails Guides
resource use no member or collection is collect way?
member or collection or no use these, which is best practice?