Re: Problem with RailsDispatcher

Mat Schaffer <[email protected]> Thu, 30 Nov 2006 14:06:03 -0500
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
On Nov 30, 2006, at 12:54 PM, Andre Nathan wrote:

> Hello
>
> I'm having some trouble trying to configure mod_ruby 1.2.6 with
> RailsDispatcher. When I access my application, the browser shows the
> contents of dispatch.rb.
>
> Here's the configuration I'm using:
> ...
>
> I did some debugging in rails-dispatcher.rb, and in the #handler  
> method,
> I noticed it's returning DECLINED at the beginning, because the
> r.filename contains the whole path to dispatch.rb, and thus doesn't
> match /\Adispatch\.(cgi|fcgi|rb)\z/. Anyone seen this problem too?
> Removing the "\A" from the regex makes it match, but then I get some
> strange errors (stack level too deep) which don't happen in CGI mode.
>
> Anything obvious I could be missing?
>
> Thanks
> Andre

I thought I'd just take a shot in the dark since this list can be  
really dead at times.  I remember reading that you need a special  
dispatcher to use rails with mod_ruby.  Maybe that's what you're  
missing?
-Mat