Complete the code to set the root route to the home controller's index action.
root to: '[1]'
The root route should point to the controller and action in the format "controller#action". Here, "home#index" means the index action in the home controller.
Complete the code to define the root route using the to: syntax.
root [1] 'home#index'
The root route can be defined with the 'root to:' syntax followed by a string specifying the controller and action.
Fix the error in the root route definition.
root '[1]'
The root route should be defined with the controller and action in the format 'controller#action'. Adding '_path' or swapping names causes errors.
Fill both blanks to define a root route that points to the welcome controller's show action.
root to: '[1]#[2]'
The root route string combines the controller and action separated by '#'. Here, 'welcome#show' points to the show action in the welcome controller.
Fill all three blanks to define a root route using the to: syntax that renders the dashboard controller's main action.
root [1] '[2]#[3]'
The root route uses 'to:' followed by the string 'dashboard#main' which points to the main action in the dashboard controller.