Hello everyone, I have a site with a collection of camping apps.  I'm trying to force one of them, blog.rb, to run as the index ('/'). 

I think that I understand the RDoc as stating that I can execute the following to make that happen:

Camping::FastCGI.serve File.expand_path(current), Blog

But, when doing so, I recieve the following error:

Camping Problem!

//

NoMethodError undefined method `has_key?' for nil:NilClass

  • /home/styledbits/local/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/fastcgi.rb:176:in `serve'
  • /home/styledbits/local/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/fastcgi.rb:173:in `each'
  • /home/styledbits/local/lib/ruby/gems/1.8/gems/camping- 1.5/lib/camping/fastcgi.rb:173:in `serve'
  • /home/styledbits/local/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/fastcgi.rb:90:in `start'
  • /home/styledbits/local/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/fastcgi.rb:75:in `each'
  • /home/styledbits/local/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/fastcgi.rb:75:in `start'
  • /home/styledbits/local/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/fastcgi.rb:172:in `serve'
  • dispatch.fcgi :9
I'm stuck trying to understand what exactly is breaking down here.  I'm trying to get Apache running on my dev box to check into this further. 

My dispatch.fcgi file follows:

#!/usr/bin/env ruby

current = File.dirname(__FILE__)

require 'rubygems'
require 'camping/fastcgi'
ENV['FORCE_ROOT'] = "1"
Camping::Models::Base.establish_connection :adapter => 'sqlite3', :database => File.expand_path(current + '/camping.db')
Camping::FastCGI.serve File.expand_path(current), Blog

***

Any ideas?
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to