3
2

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.

form_with で utf8=✓ を消す書き方は skip_enforcing_utf8: true のみ

3
Posted at
書き方 動作
form_with(enforcing_utf8: false) ×
form_with(html: {enforcing_utf8: false}) ×
form_with(html: {skip_enforcing_utf8: true}) ×
form_with(skip_enforcing_utf8: true)

いったいどれが正解なのかと考えられるパターンをすべて試して最後にたどりつけました。

参照

rails/form_helper.rb at master · rails/rails
https://github.com/rails/rails/blob/master/actionview/lib/action_view/helpers/form_helper.rb#L1541

form_withでutf8=✓を消す方法
https://qiita.com/sukechansan/items/546f5f60f3fae95af87a

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?