Sprockets::FileNotFound;找不到文件 'selectize.source.css'

Sprockets::FileNotFound; couldn't find file 'selectize.source.css'

我最近将我的应用程序从 Rails 4.2.6 升级到 Rails 5.2.3

我按照 Rails Guides

上的程序进行操作

现在,当我尝试启动我的 开发服务器 时,它启动时没有任何错误。 但是当我在浏览器中点击 URL 时,会出现一个错误:

Sprockets::FileNotFound 在用户会话中#new

Showing /home/pranjal/source/my-app/app/views/layouts/application.html.erb where line #5 raised:

couldn't find file 'selectize.source.css'
Checked in these paths: 
  /home/pranjal/source/my-app/app/assets/config
  /home/pranjal/source/my-app/app/assets/font-awesome
  /home/pranjal/source/my-app/app/assets/fonts
  /home/pranjal/source/my-app/app/assets/images
  /home/pranjal/source/my-app/app/assets/javascripts
  /home/pranjal/source/my-app/app/assets/stylesheets
  /home/pranjal/source/my-app/vendor/assets/javascripts
  /home/pranjal/source/my-app/vendor/assets/stylesheets
  ...
Extracted source (around line #5):

<!DOCTYPE html>
<html>            
  <head>
    <title>My App</title>
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>
  </head>

看起来 jsrails 的新版本之间不兼容的问题尝试 use/upgrade selectize-rails gem 并删除 jscss 来自 repo 的文件(如果存在)。