rails nested resources and controllers code example Example: how to generate a controller in a nested route rails rails g controller api/v1/reviews