Sprockets::FileOutsidePaths 在 Posts#index 中,其中 application.css.scss 不再位于加载路径下
Sprockets::FileOutsidePaths in Posts#index where application.css.scss is no longer under a load path
所以我决定从 github 克隆我的 repo 并想出了这个错误。我不确定当原始版本仍然有效时这是怎么发生的。谢谢大家的帮助。
<head>
Extracted source (around line #5):
3 <head>
4 <title>Yarp</title>
5 <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6 <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7 <%= csrf_meta_tags %>
8 </head>
我的application.index.erb
<!DOCTYPE html>
<html>
<head>
<title>Yarp</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= render 'layouts/header' %>
<div class="container">
<% flash.each do |message_type, message| %>
<div id="flash" class="flash-<%= message_type %>"><%= message %></div>
<% end %>
<%= yield %>
</div>
</body>
</html>
这是我的 Gem 文件
source 'https://rubygems.org'
gem 'rails', '4.2.2'
gem 'pg'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'devise', '~> 3.5.2'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'acts_as_votable', '~> 0.10.0'
gem 'auto_html', '~> 1.6.4'
# Design
gem 'font-awesome-rails', '~> 4.4.0.0'
gem 'bourbon', '~> 4.2.3'
gem 'neat', '~> 1.7.2'
gem 'refills', '~> 0.1.0'
gem 'normalize-rails', '~> 3.0.3'
gem 'sdoc', '~> 0.4.0', group: :doc
运行 bundle exec rake tmp:clear
帮了我。
所以我决定从 github 克隆我的 repo 并想出了这个错误。我不确定当原始版本仍然有效时这是怎么发生的。谢谢大家的帮助。
<head>
Extracted source (around line #5):
3 <head>
4 <title>Yarp</title>
5 <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6 <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7 <%= csrf_meta_tags %>
8 </head>
我的application.index.erb
<!DOCTYPE html>
<html>
<head>
<title>Yarp</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= render 'layouts/header' %>
<div class="container">
<% flash.each do |message_type, message| %>
<div id="flash" class="flash-<%= message_type %>"><%= message %></div>
<% end %>
<%= yield %>
</div>
</body>
</html>
这是我的 Gem 文件
source 'https://rubygems.org'
gem 'rails', '4.2.2'
gem 'pg'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'devise', '~> 3.5.2'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'acts_as_votable', '~> 0.10.0'
gem 'auto_html', '~> 1.6.4'
# Design
gem 'font-awesome-rails', '~> 4.4.0.0'
gem 'bourbon', '~> 4.2.3'
gem 'neat', '~> 1.7.2'
gem 'refills', '~> 0.1.0'
gem 'normalize-rails', '~> 3.0.3'
gem 'sdoc', '~> 0.4.0', group: :doc
运行 bundle exec rake tmp:clear
帮了我。