Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find template for digesting #365

Open
h8rry opened this issue Oct 18, 2016 · 3 comments
Open

Couldn't find template for digesting #365

h8rry opened this issue Oct 18, 2016 · 3 comments

Comments

@h8rry
Copy link

h8rry commented Oct 18, 2016

I am getting an warning/error message - "Couldn't find template for digesting" for my partials while using json.cache! in 2.6.0, but everything works for me.

I am having a hard time finding an explanation online. Can anyone help me out here?

@knobsam
Copy link

knobsam commented Nov 3, 2016

Got this warning too in my log files, but I found a solution / the reason for this.
I have an api backend with different namespaces. In my templates I use "json.partial! 'TEMPLATE', VARS". Following this syntax I receive these warnings. But if I provide the full path to the partial ( "json.partial! 'my/path/to/template', VARS" ), everything works fine.

Update: I only get this warnings while using "json.cache!" syntax.

@rsl
Copy link

rsl commented Jan 26, 2017

how are you providing full path exactly?

@joshtaylor
Copy link

joshtaylor commented Sep 28, 2020

Stumbled on this issue after debugging and resolving the issue myself within a namespaced api backend as well. Rails is rendering it properly even though its being logged. Oddly enough, I still see the error in the logs even if I comment out the guilty line within the json.cache! block.

Providing the fully-qualified relative path within the views directory, the error messaging goes away:
partial: 'bar' vs partial: 'my/namespace/foo/bar'

on Rails 6.0.3.3 and jbuilder (2.10.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants