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?

【Rails】ライブラリについて

Last updated at Posted at 2025-04-19

記事概要

Ruby on Railsのライブラリについて、まとめる

前提

  • Ruby on Railsでアプリケーションを作成している

ライブラリとは

概要

他のプログラムと組み合わせて使用するために、複雑なプログラムを1つのセットにしたもの

RubyGems

Rubyのライブラリを管理するシステム
こちらのサイトを参照

Gem

RubyGemsに登録されている、各ライブラリのこと

Gemfile

アプリケーションで使用するGemの「名前」と「バージョン」の情報を記載し、管理するファイル

Gemfile.lock

bundle installによってインストール済みとなったGemの情報を記録するファイル

手順

  1. VSCodeでGemfileを、編集する
  2. bundle installコマンドを実行し、Gemのインストールを行う
    # アプリのディレクトリに移動
    % cd ~/[アプリ名]
    
    # Gemfileを元にGemをインストールし、Gemfile.lockを更新する
    % bundle install
    
  3. サーバーの再起動

Ruby on Railsまとめ

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?