mod_ruby and ActiveRecord - Apache
This is a discussion on mod_ruby and ActiveRecord - Apache ; Hi all,
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 ...
-
mod_ruby and ActiveRecord
Hi all,
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.
Best regards,
Bart
-
Re: mod_ruby and ActiveRecord
Hi,
At 02/10/06 18:12:52 (JST),
bart vandendriessche <bart@nascom.be> 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
-
Re: mod_ruby and ActiveRecord
Unfortunately the only log message I get is the ActiveRecord sql
logging. After that everything just seems to stop dead in it's tracks. I
had added some logging right before and right after the find()
statement, but as soon as the query has 1 or more results, then no
logging appears after the find() statement.
We have decided to use fcgi with lighty for this project, but will keep
monitoring the progress mod_ruby makes.
regards,
Bart
Shugo Maeda wrote:
> Hi,
>
> At 02/10/06 18:12:52 (JST),
> bart vandendriessche <bart@nascom.be> 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
>
>
>