From: "Mauricio Fernández" Date: 2004-11-23T19:57:52+09:00 Subject: Re: Instiki problems On Mon, Nov 22, 2004 at 07:06:17PM +0900, Ryco@gmx.net wrote: > Hi! > > I have some problems with instiki, which we use as a internal projekt wiki > here in our company. The problem is the following: > > Instiki refuses to render a page with following error message: > > Please correct the error that caused this error in rendering: > private method `gsub' called for nil:NilClass > > Stack trace is the following: > Rendering: GeneralConsiderations > F:/wiki/instiki-0.9.1/app/models/wiki_words.rb:22:in `separate' > F:/wiki/instiki-0.9.1/app/models/web.rb:45:in `make_link' > F:/wiki/instiki-0.9.1/app/models/page.rb:70:in `link' You could try to find the source of this with something like --- wiki_words.rb.orig 2004-11-23 11:51:08.000000000 +0100 +++ wiki_words.rb 2004-11-23 11:54:36.000000000 +0100 @@ -16,10 +16,11 @@ WIKI_WORD_PATTERN = '[A-Z' + I18N_HIGHER_CASE_LETTERS + '][a-z' + I18N_LOWER_CASE_LETTERS + ']+[A-Z' + I18N_HIGHER_CASE_LETTERS + ']\w+' def self.separate(wiki_word, ignore_separation = false) + return "BOGUSMARKER" if wiki_word.nil? if ignore_separation wiki_word else wiki_word.gsub(/([a-z#{I18N_LOWER_CASE_LETTERS}])([A-Z#{I18N_HIGHER_CASE_LETTERS}])/u, '\1 \2') end end -end \ No newline at end of file +end Then grep for BOGUSMARKER. -- Hassle-free packages for Ruby? RPA is available from http://www.rubyarchive.org/