Search⌘ K
AI Features

Challenge Solution: Configure Route

Understand how to configure the root route in a Ruby on Rails project. This lesson explains setting the links#index as the root so the index view appears at the main URL, helping you structure your application navigation.

We'll cover the following...

Solution

//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css

Explanation

config/routes.rb

...