I think I knew why, ruby-lsapi does Rails environment variable fix up if a rail environment has been detected, otherwise standard CGI environment variable is used.
ruby-lsapi checks "RAILS_ROOT" or "RAILS_ENV" as the signature, which will be set automatically when our rails easy setup is used...