15

Working on my first Rails 4 app when all of a sudden I started getting this mysterious EOFError. Checked out some old commits via git when everything was working fine and the error was still there.

EOFError in Labels#index
Extracted source (around line #5):

<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>

I figured out a workaround, which is to rename application.css to app.css and change to

<%= stylesheet_link_tag "app", media: "all", "data-turbolinks-track" => true %>

but still no idea why this is happening. Any thoughts?

4

1 回答 1

34

清除 sprockets 缓存

rm tmp/cache/assets/development/sprockets/*
于 2013-08-02T12:24:41.327 回答