rails 4 routing with type code example Example: root route in rails root :to => "pages#show", :id => '1'