
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
link_to in helper with block
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
link_to in helper with block
The return value of the block becomes its content. Only the last line is being returned. You must... The return value of the block becomes its content. Only the last line is being returned. You must concatenate the two strings together with + to produce a single return value: link_to("#", class: "add_fields btn btn-success") do name + content_tag(:i, "", class: "icon-plus icon-white") end You'll need to use html_safe to prevent the content of your tag from automatically being HTML encoded: link_t