nested actions controller rails example
Example 1: root route in rails
root :to => "pages#show", :id => '1'
Example 2: how to generate a controller in a nested route rails
rails g controller api/v1/reviews
root :to => "pages#show", :id => '1'
rails g controller api/v1/reviews