我试图使用Octopress(一个博客引擎的哲基尔的顶部)在我的新款Macbook,当我运行bundle exec jekyll --server
我得到这个错误:错误的参数类型字符串(预期阵列)
(简称路)
/path/to/markdown.rb:118:in `to_html': wrong argument type String (expected Array) (TypeError)
from /path/to/markdown.rb:118:in `convert'
...
(完整路径)
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/converters/markdown.rb:118:in `to_html': wrong argument type String (expected Array) (TypeError)
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/converters/markdown.rb:118:in `convert'
...
放眼线118,我看到:
RDiscount.new(content, *@rdiscount_extensions).to_html
如果我用“hello”这样的字符串替换这一行,服务器就会正常启动。但如果我用RDiscount.new("hello").to_html
之类的东西替换它,我会得到同样的错误。但是,启动irb并运行RDiscount.new("hello").to_html
工作正常。
任何想法有什么不对?我能够在另一台计算机上启动服务器,但我不知道如何弄清两台计算机在做什么(某个库的某个版本的某个版本不同)之间的区别。
很奇怪。也许尝试切换到[kramdown](http://kramdown.rubyforge.org/)而不是RDiscount? – Phrogz 2012-04-15 14:24:40