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 3 years have passed since last update.

ライブラリの導入

Posted at

前回の記事でアプリを作成したらライブラリを導入する。
ライブラリとはGemの事で、開発を迅速に進めるための拡張機能。備忘録として残す。

Gemfileの中にアプリで使う名前、バージョンを管理。

ファイルに記載したらターミナルにて bundle install をする。

Gemfile

# Use mysql as the database for Active Record
gem 'mysql2', '0.5.3'  追加
.
.
.
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'pry-rails'  追加

追加後、bundle update
今回はすでにあるバージョンの更新のため update

rails s をし起動すればOK

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?