cloudhead / toto

the 10 second blog-engine for hackers
MIT License
1.49k stars 244 forks source link

I keep getting a NoMethodError concerning RDiscount #103

Closed benjamincharity closed 13 years ago

benjamincharity commented 13 years ago

My error:

NoMethodError at /
undefined method `gh_blockcode=' for #<RDiscount:0x007f985ca27078>

Ruby    /Users/bc/.rvm/gems/ruby-1.9.2-p290@toto/gems/rdiscount-1.6.8/lib/rdiscount.rb: in block in initialize, line 89
Web GET localhost/

Anyone know what this is about? This has happened to me several times now. Before I literally had to delete all my articles and start again. Is there something simple I'm missing here. Even rolling back to a commit that was working yesterday doesn't fix it.

This is my first time working with toto and markdown; maybe I'm miss-using one?

My code in case it helps: https://github.com/benjamincharity/Toto-Site

Thanks in advance.

benjamincharity commented 13 years ago

Found that this line from my config.ru was un-commented:

  set :markdown,    [:gh_blockcode, :strikethrough, :fenced_code, :no_intraemphasis]

I don't know anything about markdown engines etc (yet) so was unaware that this was causing it. I'm closing this since it was my own error, but if anyone would like to explain why this was causing the error I would love to learn!