ローカル環境では
app/assets/imagesの配下の画像を表示させることができているが、本番環境になると、画像をうまく読み込まない。
これは、ローカルと本番環境では、パスが違うかららしい。
ローカルは以下のコードで画像を表示させることができる。
<%= image_tag hoge.png", class:"hoge" %>
本番環境では、asset_path
を使う必要がある。
<%= image_tag asset_path("/images/hoge.png", class:"hoge") %>