Hi,
I (and others) are having a problem that seems to stem from using RESTful routes and the LS ruby api.
Before going any further, please note this is not a Rails issue as the scenario works perfectly using webbrick or mongrel in a script/server environment and works perfectly (important point here) under Litespeed if using Mongrels (production and development).
RESTful routes are not working ONLY when using Litespeed and the LSapi.
Scenario:
Simple Rails application with a scaffold_resource creation.
Using attachment_fu (in fact simply follow these instuctions: attachment_fu tutorial.)
First issue was that image_science was not working under the LSapi (remember it works perfectly under webbrick and LS with mongrels), I had to debug and then add:
to my environment.rb file.
Ok, so now the simple app loads using LSapi.
Now uploading simply does not work there no errors in the rails logs, no errors in debug mode in Litespeed. Again, it works perfectly when using mongrels and Litespeed.
As there were no errors anywhere, I just played and eventually removed all RESTful references - routes were no longer:
I changed them to:
Then everything worked using the LSAPI and continued to work with the mongrels/webbricks as they had all along.
As you can see, my thinking is that the LSAPI has issues with RESTful routes.
I probably can't give a great deal more information as it is easily replicated using the attachment_fu tutorial linked to above.
It will not work with LSAPI but works perfectly with LS + mongrels and with script/server running webbrick/mongrels.
Debain Etch (also fails on Ubuntu LTS)
Litespeed Ent 1-core v 3.2 (also fails on free v 3.2.1)
Rails 1.2.3
Ruby 1.8.5
Naturally, I would be delighted to supply more info if I can.
PickledOnion.
I (and others) are having a problem that seems to stem from using RESTful routes and the LS ruby api.
Before going any further, please note this is not a Rails issue as the scenario works perfectly using webbrick or mongrel in a script/server environment and works perfectly (important point here) under Litespeed if using Mongrels (production and development).
RESTful routes are not working ONLY when using Litespeed and the LSapi.
Scenario:
Simple Rails application with a scaffold_resource creation.
Using attachment_fu (in fact simply follow these instuctions: attachment_fu tutorial.)
First issue was that image_science was not working under the LSapi (remember it works perfectly under webbrick and LS with mongrels), I had to debug and then add:
ENV['HOME'] ||= '/home/onion/'
Ok, so now the simple app loads using LSapi.
Now uploading simply does not work there no errors in the rails logs, no errors in debug mode in Litespeed. Again, it works perfectly when using mongrels and Litespeed.
As there were no errors anywhere, I just played and eventually removed all RESTful references - routes were no longer:
upload_url(@upload)
redirect_to :action => :show
As you can see, my thinking is that the LSAPI has issues with RESTful routes.
I probably can't give a great deal more information as it is easily replicated using the attachment_fu tutorial linked to above.
It will not work with LSAPI but works perfectly with LS + mongrels and with script/server running webbrick/mongrels.
Debain Etch (also fails on Ubuntu LTS)
Litespeed Ent 1-core v 3.2 (also fails on free v 3.2.1)
Rails 1.2.3
Ruby 1.8.5
Naturally, I would be delighted to supply more info if I can.
PickledOnion.