我正在使用Tiny Mce Editor 4.0.5
. 新的.htmlRails 2
<% form_for @custom, :url=>"create" do |c| -%>
<%= c.text_area 'description' %>
<%= c.submit %>
<% end %>
创建动作:
CustomReport.create(params[:custom_report][:description])
提交表格后,我得到
未定义的方法“stringify_keys!”
我试过了
CustomReport.create(:description => params[:custom_report][:description])
但它不存储任何 HTML 标签,那么我如何将标签存储到我的数据库中呢?