Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Asset - NoMethodError `dependency_digest`

Seemingly out of nowhere a rails project has broken for me on my local machine. The same codebase is working on production though, interestingly enough.

As soon as any asset tries to load I get the following error:

undefined method `dependency_digest' for #<Sprockets::StaticAsset:0x007fefb93d0d28>

The error appears even as the site tries to load the stylesheet_link_tag, but it seems to be happening for all assets.

Inasmuch as I can tell, I've made no changes to incite this error. In fact, the local server was working (both with pow and webrick) and then, just stopped. After no changes.

I've tried reverting the history back through my commits, but with absolutely no luck.

Any ideas?

like image 964
Sam Thornton Avatar asked Apr 05 '14 08:04

Sam Thornton


Video Answer


1 Answers

This should solve it.

rake tmp:cache:clear

like image 70
ScotterC Avatar answered Oct 05 '22 04:10

ScotterC