【发布时间】:2020-02-04 09:30:10
【问题描述】:
我在 rails 6 应用程序的表单中使用了多个富文本字段,但只有第一个字段存储在数据库中,其余字段根本没有显示在数据库中。
module.rbhas_rich_text :content has_rich_text :references has_rich_text :footnotes
_form.html.erb
f.rich_text_area:内容
f.rich_text_area :参考
f.rich_text_area :footnotes
controller.rb
params.require... :content, :references, :footnotes...
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-5 ruby-on-rails-6 trix actiontext