shary replace Child.first with Child.find_by(registered_user_id: params[:id])
Scenario is correct but make it more specific and not limited by the first child only