def change
change_column :customer, :email_text, :string, :default => 'First Line \n Second Line \n Third Line'
end
我正在尝试进行此迁移,以便此列的默认值将与新行一起使用。当我将这个字段与 simple_form 一起使用时:
<%= f.input :email_text, :as => :text, :label => 'E-Mail Text', %>
换行符显示为 \n 而不是换行符。任何人都知道我怎样才能让它工作?