Edit requests of Railsでcarrierwaveを使ってAWS S3に画像をアップロードする手順を画像付きで説明する
@Kouch
2020-01-11
Accepted
今回、testとdevelopment環境ではlocalファイル、その他ではS3に画像を保存する、という仕様になっていると思います。ただ、`config/initializers/carrierwave.rb` がtestやdevelopment環境でも読まれてまい、エラーになるので、このように分岐をする必要がありました。
Please check the preview of this article
We released Markdown parser changes on February 24, 2022. There may be some unexpected appearance changes in this update, because this article was posted before the changes.
Please don't forget to check the preview before updating your article.
For more information on the changes, please read this article.