Well, I filled in the "Instiki Setup" screen and then, kaboom!
Specifically, http://0.0.0.0:2500/create_system displayed:
> You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.files_path
>
> RAILS_ROOT: .
>
> You have a nil object when you didn't expect it!
> The error occured while evaluating nil.files_path
>
> RAILS_ROOT: .
> Application Trace | Framework Trace | Full Trace
> #{RAILS_ROOT}/app/models/wiki_file.rb:49:in `content_path'
> #{RAILS_ROOT}/app/models/web.rb:86:in `create_files_directory'
> #{RAILS_ROOT}/app/models/wiki.rb:13:in `create_web'
> #{RAILS_ROOT}/app/models/wiki.rb:70:in `setup'
> #{RAILS_ROOT}/app/controllers/admin_controller.rb:17:in `create_system'
>
> Request
>
> Parameters: {"web_name"=>"Ontiki", "password_check"=>"xxx",
> "web_address"=>"ontiki", "password"=>"xxx"}
>
> Show session dump
>
> Response
> Headers: {"cookie"=>[], "Content-Type"=>"text/html; charset=UTF-8",
> "Cache-Control"=>"no-cache"}
>
> Application Trace | Framework Trace | Full Trace
> #{RAILS_ROOT}/app/models/wiki_file.rb:49:in `content_path'
> #{RAILS_ROOT}/app/models/web.rb:86:in `create_files_directory'
> #{RAILS_ROOT}/app/models/wiki.rb:13:in `create_web'
> #{RAILS_ROOT}/app/models/wiki.rb:70:in `setup'
> #{RAILS_ROOT}/app/controllers/admin_controller.rb:17:in `create_system'
>
> Request
>
> Parameters: {"web_name"=>"Ontiki", "password_check"=>"abc",
> "web_address"=>"ontiki", "password"=>"abc"}
>
> Show session dump
>
> Response
> Headers: {"cookie"=>[], "Content-Type"=>"text/html; charset=UTF-8",
> "Cache-Control"=>"no-cache"}
So, I decided to try "going with the flow":
% rm -f db/*.db
% rake migrate
% cp db/dev.db db/prod.db
% instiki
This resulted in:
> undefined method `files_path' for nil:NilClass
>
> RAILS_ROOT: .
> Application Trace | Framework Trace | Full Trace
> #{RAILS_ROOT}/app/models/wiki_file.rb:49:in `content_path'
> #{RAILS_ROOT}/app/models/web.rb:86:in `create_files_directory'
> #{RAILS_ROOT}/app/models/wiki.rb:13:in `create_web'
> #{RAILS_ROOT}/app/models/wiki.rb:70:in `setup'
> #{RAILS_ROOT}/app/controllers/admin_controller.rb:17:in `create_system'
> instiki:6
>
> Request
>
> Parameters: {"web_name"=>"Ontiki", "password_check"=>"abc",
> "web_address"=>"ontiki", "password"=>"abc"}
>
> Show session dump
>
> Response
> Headers: {"cookie"=>[], "Content-Type"=>"text/html; charset=UTF-8",
> "Cache-Control"=>"no-cache"}
So, recalling some noise about 1.8.4 and Rails being incompatible, I
edited "instiki" to use /usr/bin/ruby. This allowed me to get to the
"Creating Home Page" page!
That page seemed to run OK, but I got a long list of nastygrams from
the server:
> instiki_h
> => Instiki started on http://0.0.0.0:2500
> => Ctrl-C to shutdown; call with --help for options
> [2006-01-22 15:40:23] INFO WEBrick 1.3.1
> [2006-01-22 15:40:23] INFO ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
> [2006-01-22 15:40:23] INFO WEBrick::HTTPServer#start: pid=27538 port=2500
> 127.0.0.1 - - [22/Jan/2006:15:40:38 PST]
> "GET / HTTP/1.1" 302 99
> - -> /
> 127.0.0.1 - - [22/Jan/2006:15:40:40 PST]
"GET /create_system HTTP/1.1" 200 3620
> - -> /create_system
> 127.0.0.1 - - [22/Jan/2006:15:41:02 PST]
> "POST /create_system HTTP/1.1" 302 105
> http://0.0.0.0:2500/create_system -> /create_system
> 127.0.0.1 - - [22/Jan/2006:15:41:04 PST]
> "GET /ontiki/new/HomePage HTTP/1.1" 200 3982
> http://0.0.0.0:2500/create_system -> /ontiki/new/HomePage
> 127.0.0.1 - - [22/Jan/2006:15:41:22 PST]
> "GET /create_system HTTP/1.1" 302 106
> - -> /create_system
> 127.0.0.1 - - [22/Jan/2006:15:41:23 PST]
> "GET /ontiki/show/HomePage HTTP/1.1" 302 105
> - -> /ontiki/show/HomePage
> 127.0.0.1 - - [22/Jan/2006:15:41:24 PST]
> "GET /ontiki/new/HomePage HTTP/1.1" 200 3858
> - -> /ontiki/new/HomePage
> ./lib/bluecloth_tweaked.rb:85: warning: already initialized constant
>Version
> ./lib/bluecloth_tweaked.rb:88: warning: already initialized constant
>SvnRev
> ./lib/bluecloth_tweaked.rb:91: warning: already initialized constant SvnId
> ./lib/bluecloth_tweaked.rb:94: warning: already initialized constant
>SvnUrl
> ./lib/bluecloth_tweaked.rb:100: warning: redefining constant
>Struct::RenderState
> ./lib/bluecloth_tweaked.rb:100: warning: already initialized constant
>RenderState
Is this just more of the same sort of cruft that is causing the tests to
yelp?
Owell, at least I'm able to fool around...
-r
--
Technical editing and writing, programming, and web development:
http://www.cfcl.com/rdm/resume
Contact information: [EMAIL PROTECTED], +1 650-873-7841
_______________________________________________
Instiki-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/instiki-users