Mysterious EOFError in Rails 4

ruby-on-rails, ruby-on-rails-4

Solution

Clear your sprockets cache

rm tmp/cache/assets/development/sprockets/*

Problem

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?

Original source