`
mathsfan
  • 浏览: 570055 次
  • 性别: Icon_minigender_1
  • 来自: 浙江省杭州市
社区版块
存档分类
最新评论

undefined method 'textilize'错误解决方法(转)

阅读更多
今天照着下载的“15分钟创建 Blog”那个视频一步步学,学到作者用了一个 textilize(post.body) 把 Blog 的内容作了一个格式转换。我也这样写,但是报了错:“undefined method 'textilize'”。我上网查了才知道这是要装一个叫 RedCloth 的东东。我就按照上面说的用命令“gem install RedCloth”,然后它说“Successfully installed RedCloth-3.0.4”。刷新网页,但网页还是报那个错,这样的话服务器重启一下就可以了。

注:如果还不行,把RedCloth加到enviroment.rb中去,即把require RedCloth一句加到require File.join(File.dirname(__FILE__), 'boot')的后面一行。
文章引用自: http://www.railscn.com/post-7831.html
分享到:
评论
1 楼 fireflyman 2009-08-31  
Thanks

相关推荐

Global site tag (gtag.js) - Google Analytics