Re: mod_ruby and ActiveRecord

Shugo Maeda <[email protected]> Sat, 18 Feb 2006 09:45:44 +0900
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi,

At 02/10/06 18:12:52 (JST),
bart vandendriessche <[email protected]> wrote:
> We are currently in the process of trying to setup Apache 2.0 with
> mod_ruby, ruby 1.8.4, rails 1.0.0 and mysql 5.0.
>
> So far we've managed to get most things working, dispatching is working
> properly, rhtml files are properly interpreted, however, there seems to
> be one strange problem with ActiveRecord. Storing info using
> ActiveRecord works fine, when I fill out one of the scaffolded forms, my
> data will be visible in the DB after submitting. However, if I request a
> page that triggers a ActiveRecord find call, which then in turn returns
> results, I will get a blank page. If the query returns 0 results, the
> page will be displayed properly, but as soon as there are 1 or more
> results, the blank page will occur.
> These pages work fine using when using just WEBrick. Any info / tips
> would be much appreciated.

Are there any log messages in log/{development,production}.log?

The current Apache::RailsDispatcher is not stable, so I recommend
FastCGI at this time.  But the Depot application in `Agile Web
Development with Rails' works fine (but a little bit slow than FastCGI)
on my environment.

Shugo