I like your proposal - I think that is VERY clear and clean.
On 10/28/06, why the lucky stiff <[EMAIL PROTECTED]> wrote:
On Sat, Oct 28, 2006 at 12:40:43PM -0400, Michael Gorsuch wrote:
> 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 ('/').
[...]
> 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
I believe you will need to load the blog app first in order to reference the
Blog const you have there.
But on further looking at this, I think I need to improve things to work like
this:
Camping::FastCGI.serve File.expand_path(current), :index => "/blog"
With an optional {:redirect => true} options or such to indicate whether the app
is to be moved to root or simply aliased there. I could use some other thoughts
on this.
_why
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list
_______________________________________________ Camping-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/camping-list

