Rails 3 Form Helpers: UTF8 and other hidden fields

前端 未结 2 1179
囚心锁ツ
囚心锁ツ 2021-02-04 14:42

The view:

<%= form_for :blog_post do |f| %>
  
  • <%= f.label :title %> <%= f.text_field :title, :type => \'
2条回答
  •  不知归路
    2021-02-04 15:26

    If you want to get rid of the utf8=✓ you may be interested in this gem, which adds it only to non-complying browsers: https://github.com/softace/utf8_enforcer_workaround

提交回复
热议问题