Cgi_process.rb:22:in `__send__': undefined method `env_table

.htaccess is like this…

AddHandler fcgid-script .fcgi
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.)$ dispatch.cgi [QSA,L] <— commented
RewriteRule ^(.
)$ dispatch.fcgi [QSA,L]

if I run…
./dispatch.rb
./…/config/environment.rb:35: warning: already initialized constant
MONTHNAMES
./…/config/environment.rb:36: warning: already initialized constant
DAYNAMES
/home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:22:in
__send__': undefined methodenv_table’ for nil:NilClass
(NoMethodError)
from
/home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:22:in
dispatch_cgi' from /home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:101:indispatch_cgi’
from
/home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:27:in
`dispatch’
from ./dispatch.rb:10

Why if it is set to use fcgi … it show that is trying to use CGI??

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs