【发布时间】:2010-10-13 09:55:23
【问题描述】:
我正在我的数据库中保存一些 erb 并将其呈现在如下视图中:
erb = ERB.new(content)
render :text => erb.result
我在尝试渲染 erb 时遇到错误,该 erb 中保存在数据库中的 erb 中有 image_tag。错误是:
undefined method `image_tag' for main:Object
有人帮忙吗?我也得到了 stylesheet_link_tag 的错误?
非常感谢 瑞克
【问题讨论】:
标签: ruby-on-rails ruby content-management-system erb