1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

link_to ブロック全体をリンク化する。

Posted at

link_toで文字列ではなく要素全体をlink化したい。

スクリーンショット 2019-07-18 14.49.47.png スクリーンショット 2019-07-18 14.47.19.png

link化したい要素の”上”にlink_toを書き、要素全体をネストさせればOK。
link_to の後にdoをつけるのを忘れずに!
hamlなのでendは不要。

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?