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