LoginSignup
0
1

More than 5 years have passed since last update.

web-console gem勉強

Last updated at Posted at 2017-04-07

ブラウザーでrails console使えるgem

github: https://github.com/rails/web-console

屏幕快照 2017-04-07 下午3.36.34.png

Modelを使いたい場合、requireする必要があるようです。

require "user"
User.cout

consoleが表示するためには、whitelisted_ips(安全リスト)の設定が必要

config.web_console.whitelisted_ips = '192.168.1.133'

設定するIPは logsファイルで見つけることができます。

Cannot render console from 192.168.1.133! Allowed networks: 127.0.0.0/127.255.255.255, ::1

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