Complete the code to generate a new controller named 'Posts'.
rails generate [1] PostsUse controller to generate a new controller in Rails.
Complete the code to generate a controller with an action named 'index'.
rails generate controller Posts [1]The index action is commonly used to list all records.
Fix the error in the command to generate a controller named 'Users' with actions 'new' and 'create'.
rails generate controller Users [1] [2]
Each action must be a separate argument; you cannot combine them in one option.
Fill both blanks to generate a controller named 'Articles' with actions 'show' and 'edit'.
rails generate controller Articles [1] [2]
Actions are listed separately after the controller name.
Fill all three blanks to generate a controller named 'Comments' with actions 'create', 'destroy', and 'update'.
rails generate controller Comments [1] [2] [3]
List all desired actions separately after the controller name.
