rails routes in browser code example
Example 1: root route in rails
root :to => "pages#show", :id => '1'
Example 2: rails resources only
resources :controller_name, only: [:create, :new]
root :to => "pages#show", :id => '1'
resources :controller_name, only: [:create, :new]