ruby on rails nested routes code example
Example 1: get and to rails
@patient = Patient.find(params[:id])
Example 2: how to generate a controller in a nested route rails
rails g controller api/v1/reviews
@patient = Patient.find(params[:id])
rails g controller api/v1/reviews