2
7

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.

hamlでハッシュロケットをシンボル型に書き変える

Posted at

hamlでハッシュロケットをシンボル型に置き換える方法を少し調べたが
情報を拾うのに時間がかかったためメモ。

変更前
 = stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => 'true'

最初に調べた拾った情報はこちら

最初に拾った情報
 = stylesheet_link_tag    'application', media: 'all', data: { turbolinks: { track: true }}

どうやら以前はハイフンが入るとまずかったらしい。

執筆日時点はこの記述で処理ができる。

 = stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'true'
2
7
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?