【发布时间】:2018-10-14 11:42:01
【问题描述】:
在 simple_form 初始化器中有这一行
# How the label text should be generated altogether with the required text.
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
我删除了评论并将其更改为
# How the label text should be generated altogether with the required text.
config.label_text = lambda { |label, required, explicit_label| "#{label}" }
但这不会影响必填字段中的星号。 * 仍然存在于标签中。如何删除必填字段中的星号?
更新:
我正在上传图片。即使在服务器重新启动后,askterisk 仍然存在。
【问题讨论】:
-
在此之后您是否重新启动了服务器?
-
@Gabbar 是的,服务器重启后星号仍然存在。