よくある入門書でRailsで CSSはscssファイルを自動プリコンパイルするという所まで学びました。
ただ、該当のルーティングでcssを呼び出したいのですが、404になってcssが反映されておりません。
入門向けに解決策をいくつかいただけませんか?
本当に入門の入門でapplication.cssすら触っておりません。
/*
- This is a manifest file that'll be compiled into application.css, which will include all the files
- listed below.
- Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
- vendor/assets/stylesheets directory can be referenced here using a relative path.
- You're free to add application-wide styles to this file and they'll appear at the bottom of the
- compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
- files in this directory. Styles in this file should be added after the last require_* statement.
- It is generally better to create a new file per style scope.
*= require_self
*= require index
*/
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/08/28 15:12
2017/08/29 03:19