```ruby
module Forem
  class CategoriesController < ApplicationController
    load_and_authorize_resource

    def show
      @category = Category.find(params[:id])
    end
  end
end
```

Make CategoriesController inherit from Forem::ApplicationController
user
```ruby
module Forem
  class CategoriesController < Forem::ApplicationController
    load_and_authorize_resource

    def show
      @category = Category.find(params[:id])
    end
  end
end
```
assistant