railsアプリケーションで、viewごとに読み込ませるファイルを変更したいです。
(例えばindex.htmlではindex.scssだけを、new.htmlではnew.scssだけをという具合です。)
application.cssのrequire_treeをrequire_directoryに変更し、application.css以外のファイルをstylesheets直下のサブディレクトリに入れて、viewごとにstylesheet_link_tagを使って読みこませようとしたのですが、
Asset filtered out and will not be served: add Rails.application.config.assets.precompile += %w( inside/index.css )
to config/initializers/assets.rb
and restart your server
というエラーが出てしまいます。
解決作をご存知の方、ご教授いただけないでしょうか。
回答1件
あなたの回答
tips
プレビュー