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