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.

デバックの情報を常に見れるようにする方法

0
Posted at

目次

結論
記述方法

結論

Viewファイル内に<%= debug {変数} if Rails.env.development? %>と記述する。

記述方法

paramsの中身を見たい時

<%= debug params if Rails.env.development? %>

上記の記述はapplication.html.erbの下に記述すると邪魔にならずに便利。

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?