0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Udemyのコース「【作りながら覚える!】 Ruby on Rails を用いたウェブ開発(Airbnbを作ろう!) 」を学ぶ。part1-2

Posted at

Udemyのこちらのコースを受けながら、疑問に思ったこと、調べた結果、大事なことをまとめていきます。

part1-2 Bootstrapの導入

Rails bootstrap sassとググってみる。

bootstrapはいいとして、sassについて軽く調べてみた。cssのすごいバージョンといった感じ。

導入するbootstrapのリンクはここ

Gemfileの表記

gem 'bootstrap-sass', '~> 3.3.7'
gem 'sass-rails', '>= 3.2'

これをGemfileに書き込めばいいのだが、~>とか=>が気になったのでまとめる。

バージョン 説明
x.x.x バージョンを固定
>= x.x.x x.x.x以上のバージョンが必要
>= x.x.x, < y.y.y x.x.x以上、y.y.y以下のバージョンが必要
~> x.0 x.1からx.9は良いが、メインのバージョンがあがるとは不可例えば、3.2は良いが、4.0は不可など

最後のがややこしい。ニョロニョロが。xの数字は固定ってことだ。

参照http://railsdoc.com/references/gemfile

自己課題

-Railsにbootstrapを導入。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?