how to write routes rails with specif controller code example Example: root route in rails root :to => "pages#show", :id => '1'