2012-01-01 202 views
0

我想使用disqus。我遵循的步驟是Disqus投擲錯誤

gem install disqus 

配置塊在application.rb

config.after_initialize do 
    Disqus::defaults[:account] = "youraccountname" 
    # so that the comments will load up in development environment 
    Disqus::defaults[:developer] = true 
    Disqus::defaults[:container_id] = "disqus_thread" 
    Disqus::defaults[:show_powered_by] = false 
    end 

在視圖

> <%= post.body %><% end %> <%= disqus_thread %> </div> <script 
> type="text/javascript" 
> src="http://disqus.com/forums/rapexegesis/embed.js"></script> 

我收到以下錯誤

undefined local variable or method `disqus_thread' for #<#<Class:0x2e5a560>:0x2e5dc50> 
Extracted source (around line #13): 



11:     <p>        
12:     <%= post.body %><% end %> 
13: <div id ="disqus_thread"> 
14: <%= disqus_thread %> 
15: </div> 
16: <script type="text/javascript" src="http://disqus.com/forums/rapexegesis/embed.js"></script> 

我缺少什麼她的e?謝謝

回答

0

如果您在Passenger,apache或其他服務器的後面,請嘗試重新啓動它。