ActiveRecord::RecordNotFound in CourseTypesController#show

can't find record with friendly id: "hut-to-hut-treks-in-europe"
Extracted source (around line #4):
2
3
4
5
6
7
              
def show
@course_type = CourseType.friendly.find(params[:id])
trip_courses = @course_type.trip_courses.order(:position).active.includes(:level)
return render file: Rails.root.join('public/404.html'), layout: false, status: :not_found if trip_courses.blank?

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"locale"=>"en", "id"=>"hut-to-hut-treks-in-europe"}

Response

Headers:

None