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

Question:
What is the correct way to generate a ProductsController with an index action using only the command-line tools bundled with Rails?

1.rails generate controller –options {name: “Products”, actions: “index”}

2.rails generate controller –name Products –action index

3.rails generate controller Products index

4.rails generate ProductsController –actions index

Posted Date:-2022-09-17 04:06:03


More MCQS Questions and answers

Search