Search code examples
rubyruby-on-rails-4

incompatible marshal file format (can't be read) format version 4.8 required; 0.0 given


I am getting the following error:

incompatible marshal file format (can't be read)
format version 4.8 required; 0.0 given

On this line:

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

From this portion of my layouts file:

  <html>
    <head>
      <title><%= full_title(yield(:title)) %></title>
      <%= stylesheet_link_tag "application", media: "all",
                                             "data-turbolinks-track" => true %>
      <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
      <%= csrf_meta_tags %>

I have never encountered this problem before and the explanations online were either too advanced for me or were related to people making games, my project is a simple rails app that I just started yesterday.


Solution

  • Have you tried clearing assets? bundle exec rake assets:clean

    And then recompile: bundle exec rake assets:precompile

    Are you somehow mixing up Ruby versions? Maybe you are precompiling with 1.9 and running Rails through Passenger or something with 2.0?