rails helper method to display different content for different routes code example Example: root route in rails root :to => "pages#show", :id => '1'