Check out example codes for "root route in rails". It will help you in understanding the concepts better.

Code Example 1

root :to => "pages#show", :id => '1'

Learn ReactJs, React Native from akashmittal.com