In Rails, which code would you use to define a route that handles both the PUT and PATCH REST HTTP verbs?
1. put :items, include: patch
2. put ‘items’, to: ‘items#update’
3.match ‘items’, to ‘items#update’, via: [:put, :patch]
4.match :items, using: put && patch
Answer:3
Posted Date:-2022-09-17 03:28:05