ActiveRecord::RecordNotFound in CourseCategoriesController#show

Couldn't find CourseCategory with 'id'=trekking
Extracted source (around line #8):
6
7
8
9
10
11
              
def show
@course_category = CourseCategory.includes(:trip_courses, :translations).find(params[:id])
if params[:sub_category]
else
@sub_categories = @course_category.course_sub_categories.includes(:translations)

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"locale"=>"en", "id"=>"trekking"}

Response

Headers:

None