Skip to content

Instantly share code, notes, and snippets.

@JunichiIto
JunichiIto / How-To:-Upgrade-to-Devise-4.9.0-[Hotwire-Turbo-integration]-jp.md
Last active March 29, 2023 05:48
【日本語訳】How To: Upgrade to Devise 4.9.0 [Hotwire Turbo integration]

WSL Ubuntu 上で chromedriver を使った System Spec を動かす

エラー別トラブルシューティング

Rails デフォルトの chromedriver-helper gem をそのまま利用するだけでは、エラーが出て実行できない場合がある。

以下、エラー別に対策を考察。

エラー1: cannot find Chrome binary

問題1. 選択肢の中からRubyの予約語ではないものを2つ選択してください。

  • A.super
  • B.begin
  • C.try
  • D.goto

問題2. 以下のコードを実行した出力として正しいものを1つ選択してください。

def foo (a, *b)
 p a
@taea
taea / rm_pid.md
Last active January 12, 2023 14:22
postgres をちゃんと終了しないと.pidファイルが残っちゃって、Rails が起動しないもんだい

Rails 起動しようとするとこんなエラーでる

PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?