Unable to specify path to jbuilder template manually (not found, even though it does exist)

I’m trying to render a jbuilder template which doesn’t exist in the usual place. With the below code, the default view it would look for would be stock_transfer_products/show.json.jbuilder, but I want to specify a template in a non-standard location, i.e. products/index.json.jbuilder

# controller: StockTransferProducts
    def show
        stock_transfer = current_customer.stock_transfers.find(params[:id])

        # by starting with stock_transfer.stock_transfer_products, we can order
        # the products by when they were added to the stock_transfer, which is
        # what we ultimately want
        @products = stock_transfer.stock_transfer_products.order(created_at: :desc).map(&:product)
        @products = InvProcure::Product.find(@products.map(&:id))

        respond_to do |format|
            format.json { render "products/index.json" }

It doesn’t seem able to find it, however:

ActionView::MissingTemplate (Missing template products/index.json with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in:
  * "/home/blaine/dev_projects/myproj/app/views"
  * "/home/blaine/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/letter_opener_web-1.4.0/app/views"
  * "/home/blaine/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootstrap4-kaminari-views-1.0.1/app/views"
  * "/home/blaine/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/kaminari-core-1.2.0/app/views"
  * "/home/blaine/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/devise-4.7.1/app/views"
  * "/home/blaine/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/actiontext-"
  * "/home/blaine/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/actionmailbox-"

I’m staring right at app/views/products/index.json.jbuilder but I keep getting the above error.

I don’t think I ever normally specify the extension. Just:

render 'product/index'

The .json.jbuilder should be added on automatically because the requested format is JSON and jbuilder is an available handler. I wonder if it is looking for index.json.json.jbuilder?

Lol, I figured out what the problem was… I keep forgetting that this codebase stuffs everything under a namespace, and so now I have to specify the namespace every time, even in this particular case.