LoginSignup
3
2

More than 5 years have passed since last update.

Rails Tutorial メモ

Last updated at Posted at 2015-03-22

Rails Tutorial に関してテスト投稿としてちょっとメモを残してみる。

5.1.2 BootstrapとカスタムCSS
Gemfileに


gem 'bootstrap-sass', '2.3.2.0'
gem 'sprockets', '2.11.0'

を追記した。
$bundle install

でエラーが出たが、どうやら先にsprocketをインストールしろと。。。
bundleでインストールした後に無事できた。

config/application.rb で、Asset Pipeline互換の行も一応記述した。
問題のapp/assets/stylesheets/custom.css.scssだが

@import "bootstrap";

でどうやらエラーが出る。。。


custom.css.scss|1 error| File to import not found or unreadable: bootstrap. Load path: /Users/username/rails_projects/sample_app/app/assets/stylesheets                                                  

rails s

でサーバーを起動してみると一応ちゃんと表示はされているようだ。
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2