routes rails code example
Example 1: root route in rails
root :to => "pages#show", :id => '1'
Example 2: resources rails
resources :name_of_your_controller
root :to => "pages#show", :id => '1'
resources :name_of_your_controller