2015-04-19 40 views
1

我安装了Redcarpet。我正在关注如何使用它的272 Railscast教程。我在我的这一行show.html.erb使用Redcarpet和rails 4

<%= Redcarpet.new(@topic.text).to_html %> 

我的rails应用程序似乎并不知道那里是Redcarpet。我给出了一个NoMethodError

undefined method `new' for Redcarpet:Module 

我该如何解决这个问题?

回答