error

rails

Rails 7でflashメッセージが表示されない

Rails 7でflashやflash.nowが表示されなくなったので、その原因と解決方法。発生した問題Rails 7でflashやflash.nowが表示されない。pathによっては表示される場合もある。解決法turbo-railsを削除...
rails

Rails newで`const_defined?’: wrong constant name (NameError)が出る。

rails newしたらエラーが出た。rails new ./ を rails new ./app_dir_name/ にしたら解決した。原因はよくわかってないけどアプリケーション名の指定方法が悪かったっぽい。
error

RailsでHTTP Origin header didn’t match request.base_url errorの解決

概要Railsを本番環境にデプロイしたら、以下のエラーが発生。HTTP Origin header didn’t match request.base_url原因リバースプロキシに使用していたNginxの設定にミスがあった。解決策nginx...
computer

nslookupでIPアドレスを調べる

結論% nslookup google.com 1.1.1.1Server: 1.1.1.1Address: 1.1.1.1#53Non-authoritative answer:Name: google.comAddress: 142.2...
error

RSA Encryption not supported – caching_sha2_password plugin was built with GnuTLS support

概要musqlでRSA Encryption not supported - caching_sha2_password plugin was built with GnuTLS supportのエラーが出た。Access denied f...
rails

RSA Encryption not supported – caching_sha2_password plugin was built with GnuTLS support の解決

やりたいことdocker-composeでrailsのアプリを作る。DBにmysqlを使用する。エラーRSA Encryption not supported - caching_sha2_password plugin was built...
rails

Railsでchart.jsを使おうとするとUglifier::Error:

概要Railsでchart.jsを使おうとして、bundle exec rails assets:precompileを実行すると Uglifier::Error: が発生する。production環境だとエラーだが、develop環境だと...
rails

ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation “player” does not exist

概要Railsで rails test を実行したら以下のエラーが出た。ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "player" does no...
computer

iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

概要UnityでGoogle AdModを使用して広告を出そうとしたらビルド時にエラー発生。解決策パソコンにcocoapodsをインストールするターミナルを起動し、xcodeのディレクトリに移動して $pod repo update, $p...
python

pyenvでPythonをインストールしたのに Command ‘python’ not found

問題pyenvでPythonをインストールしたが、$python -V で、 Command 'python' not found と表示される。原因・解決source ~/.bash_profileで環境設定の変更を反映させる。終わりにp...
Sponsored links