Html 如何在rails表单的占位符文本中显示撇号

Html 如何在rails表单的占位符文本中显示撇号,html,ruby-on-rails,forms,erb,Html,Ruby On Rails,Forms,Erb,我想让我的表格有一个像这样的占位符 请输入商店的地址 我如何编辑下面的表单以使撇号生效 <%= text_area_tag 'store', '', class: 'form-control', placeholder: 'Please enter the store's address' %> 您可以使用反斜杠转义撇号: <%= text_area_tag 'store', '', class: 'form-control', placeholder: 'Please e

我想让我的表格有一个像这样的占位符

请输入商店的地址

我如何编辑下面的表单以使撇号生效

<%= text_area_tag 'store', '', class: 'form-control', placeholder: 'Please enter the store's address' %> 

您可以使用反斜杠转义撇号:

<%= text_area_tag 'store', '', class: 'form-control', placeholder: 'Please enter the store\'s address' %>
或使用带引号的字符串文字:

<%= text_area_tag 'store', '', class: 'form-control', placeholder: "Please enter the store's address" %>

您可以使用反斜杠转义撇号:

<%= text_area_tag 'store', '', class: 'form-control', placeholder: 'Please enter the store\'s address' %>
或使用带引号的字符串文字:

<%= text_area_tag 'store', '', class: 'form-control', placeholder: "Please enter the store's address" %>

占位符:“请输入门店地址”占位符:“请输入门店地址”