Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An EOF error occurring out of nowhere

I'm on Rails 4.0.2, and still only develop locally.

Without doing anything (as I know of) I'm getting the following error message: "end of file reached", and the following line is marked red in the error page:

<%= stylesheet_link_tag "application", :media => "all" %>

I've tried removing all css rules, but that doesn't change anything.

The error stops ocurring only when commenting out that line.

If it's of any help, my config/development.rb:

Verksam::Application.configure do
  config.cache_classes = false
  config.eager_load = false
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false
  config.action_mailer.raise_delivery_errors = false
  config.active_support.deprecation = :log
  config.active_record.migration_error = :page_load
  config.assets.debug = true
end
like image 476
Fellow Stranger Avatar asked Nov 29 '22 07:11

Fellow Stranger


1 Answers

Clear your sprockets cache by running the following:

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

Why this works is beyond me but I've run into the same issue and this always works. If anyone knows why this is necessary I would be interested to hear.

like image 157
Josh Avatar answered Dec 05 '22 15:12

Josh