【发布时间】:2011-10-01 08:27:54
【问题描述】:
我有一个项目,它使用来自 80beans 的荷兰人的所见即所得编辑器“wysihat-engine”。它使用 Rails 版本 3.0.9 可以正常工作,但升级到 3.1.0 后,wysihat-engine 无法从 ERB::Util (ActiveSupport 3.1.0) 找到 'html_escape',给我这个错误消息:
undefined method `html_escape' for #<ActionView::Helpers::InstanceTag:my-wysihat-editor- instance>
我已经通过在 'wysihat-engine.rb' 中定义 'html_escape' 来修复它(确实很糟糕),但我敢肯定,有理由不这样做:)。
我的问题: 1.这是新版Rails的bug吗? 2. 对于 Rails 3.1 项目,WYSIWYG 编辑器有更好的选择吗?
提前谢谢你。
【问题讨论】:
标签: ruby-on-rails activesupport html-escape