rails 5 to 6 routes root code example Example: root route in rails root :to => "pages#show", :id => '1'