how to root to ruby on rails code example Example: root route in rails root :to => "pages#show", :id => '1'