- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
 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

Posted Date:-2022-09-17 03:28:05


More MCQS Questions and answers

Search