how to specify the controller and action of a routes in rails code example Example: root route in rails root :to => "pages#show", :id => '1'