0
0

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 3 years have passed since last update.

Rails、hamlでFontAwesomeを使う

Posted at

今日、だいぶつまいたので、メモ程度に書いておきます。

①ハッシュロケットをシンボル型に直す。

ハッシュロケットは時代遅れになっているようで、
取り残されないようにシンボル型に書き換えます。



基本形
ハッシュロケット
:rocket => "rocket"

シンボル型
hash: "hash"


書き換えてみる
ハッシュロケット
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/

シンボル型
%meta{content: "text/html; charset=UTF-8", "http-equiv": "Content-Type"}/

②link_toでFontAwesomeを表示

a(href)を
= link_to "#" doに変更

= link_to new_group_path do
= fa_icon 'edit'

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?