0
1

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.

binding.pryを使えるようにする方法

Posted at

概要

テストコードでerror_full_messagesを確認したり、インスタンス変数の中身を確認するのに便利なbinding.pry。そんなbinding.pryの導入方法をここに記述しておきます。

手順

Gemfileに'pry-rails'を記述。

Gemfile.
~中略~
gem 'pry-rails'

###Gemfileの一番下に記述。

以上!

###たったこれだけでbinding.pryが使用できるがGemfileにpry-railsを記述せずにbinding.pry未遂をすることが多々あったため、記事にしました!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?