how to see route name in controller rails code example
Example 1: rails get current path
request.url
# => "http://localhost:3000/lists/7/items"
request.path
# => "/lists/7/items"
Example 2: how to generate a controller in a nested route rails
rails g controller api/v1/reviews