0 votes
in Ruby by

Given the URL helper product_path(@product), which statement would be expected to be false?

 a. If sent using the PATCH HTTP method, the URL could be used to update a product in the database.

 b. If sent using the POST HTTP method, the URL would create a new product in the database.

 c. If sent using the GET HTTP method, the URL would execute the show action in ProductsController.

 d. If sent using the DELETE HTTP method, the URL would call the destroy action by default.

1 Answer

0 votes
by

Given the URL helper product_path(@product), which statement would be expected to be false?

 a. If sent using the PATCH HTTP method, the URL could be used to update a product in the database.

 b. If sent using the POST HTTP method, the URL would create a new product in the database.

 c. If sent using the GET HTTP method, the URL would execute the show action in ProductsController.

 d. If sent using the DELETE HTTP method, the URL would call the destroy action by default.

 Correct answer is :-  If sent using the POST HTTP method, the URL would create a new product in the database.

...