Question: What is the correct way to generate a ProductsController with an index action using only the command-line tools bundled with Rails?
- `rails generate controller --options {name: "Products", actions: "index"}`
- `rails generate controller --name Products --action index`
- `rails generate controller Products index`
- `rails generate ProductsController --actions index`
Answer: The correct answer of the above question is Option C:`rails generate controller Products index`