show.html.haml
= image_tag @event.eye_catch.to_s, size: "100x100", alt: "test"
- 第1引数 ・・・ 画像ファイルへのパスを指定
- 第2引数 ・・・ 表示したいサイズを指定できます(width × height)
- 第3引数 ・・・ alt属性の指定
More than 5 years have passed since last update.
= image_tag @event.eye_catch.to_s, size: "100x100", alt: "test"
Register as a new user and use Qiita more conveniently