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