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