{"id":15929927,"url":"https://github.com/saneef/reproduce-couldnt-find-template-for-digesting","last_synced_at":"2025-03-18T13:51:37.099Z","repository":{"id":141575579,"uuid":"94038518","full_name":"saneef/reproduce-couldnt-find-template-for-digesting","owner":"saneef","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-18T03:39:26.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T18:46:05.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saneef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-11T23:43:20.000Z","updated_at":"2017-06-11T23:44:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f7e1360-a76d-4a60-a56e-f432ebca6d4a","html_url":"https://github.com/saneef/reproduce-couldnt-find-template-for-digesting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Freproduce-couldnt-find-template-for-digesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Freproduce-couldnt-find-template-for-digesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Freproduce-couldnt-find-template-for-digesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saneef%2Freproduce-couldnt-find-template-for-digesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saneef","download_url":"https://codeload.github.com/saneef/reproduce-couldnt-find-template-for-digesting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244236101,"owners_count":20420752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T00:21:57.930Z","updated_at":"2025-03-18T13:51:37.093Z","avatar_url":"https://github.com/saneef.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproducing “Couldn't find template for digesting”\n\n# Scaffolding\n\n```bash\n$ bundle install\n$ rake db:migrate\n$ bundle exec rake db:fixtures:load FIXTURES=books\n$ bundle exec rails dev:cache # enable cache in development environment\n```\n\n# Problem\n\nOn a regular page load all caching works. But only on rendering `js.erb` `Couldn't find template for digesting` error occors.\n\n## Steps to reproduce\n\nRun the server following above steps.\n\n```bash\n$ bundle exec rails server\n```\n\nClick on any of the heart icon. It invokes a ajax patch, for which `/app/views/books/update.js.erb` is rendered. That’s when the error occurs. See this log (look for 🔥).\n\n```bash\nStarted PATCH \"/books/113629430\" for 127.0.0.1 at 2017-06-12 05:04:42 +0530\nProcessing by BooksController#update as JS\n  Parameters: {\"id\"=\u003e\"113629430\"}\n  Book Load (0.2ms)  SELECT  \"books\".* FROM \"books\" WHERE \"books\".\"id\" = ? LIMIT ?  [[\"id\", 113629430], [\"LIMIT\", 1]]\n   (0.1ms)  begin transaction\n  SQL (0.6ms)  UPDATE \"books\" SET \"favorite\" = ?, \"updated_at\" = ? WHERE \"books\".\"id\" = ?  [[\"favorite\", \"t\"], [\"updated_at\", \"2017-06-11 23:34:42.976896\"], [\"id\", 113629430]]\n   (1.5ms)  commit transaction\n  Rendering books/update.js.erb\n  Couldn't find template for digesting: icons/_icon # \u003c--- 🔥\n  Rendered icons/_icon.html.erb (2.8ms) [cache hit]\n  Rendered books/update.js.erb (7.0ms)\nCompleted 200 OK in 32ms (Views: 18.9ms | ActiveRecord: 2.4ms)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaneef%2Freproduce-couldnt-find-template-for-digesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaneef%2Freproduce-couldnt-find-template-for-digesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaneef%2Freproduce-couldnt-find-template-for-digesting/lists"}