tell rails to route all urls to home page code example Example: root route in rails root :to => "pages#show", :id => '1'