【发布时间】:2011-06-11 22:55:30
【问题描述】:
我在本地应用程序中使用 RedCloth 时遇到问题。我不断收到以下错误:
uninitialized constant ActionView::CompiledTemplates::RedCloth
发生这种情况是因为我有以下代码:
<%= RedCloth.new("Some text").to_html %>
我试图做的是把它放在 environment.rb 文件中:
require "RedCloth"
但是,当我这样做时,我的 Phusion Passenger + Nginx 配置出现了巨大错误,我在以下论坛中对此进行了详细说明:http://railsforum.com/viewtopic.php?id=42560
任何帮助都会很棒。谢谢!
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 gem initialization redcloth