A andreas Well-Known Member Mar 15, 2010 #1 Mar 15, 2010 #1 Since updating to LSWS 4.0.13 I get the following error from an old Rails app: /opt/lsws/fcgi-bin/RailsRunner.rb:11: uninitialized constant Rails::VERSION (NameError) I worked around the problem by adding "rescue '2.0.0'" after the offending line.
Since updating to LSWS 4.0.13 I get the following error from an old Rails app: /opt/lsws/fcgi-bin/RailsRunner.rb:11: uninitialized constant Rails::VERSION (NameError) I worked around the problem by adding "rescue '2.0.0'" after the offending line.
M mistwang LiteSpeed Staff Mar 18, 2010 #2 Mar 18, 2010 #2 Can you give complete code around that line? not that familiar with ruby syntax.
A andreas Well-Known Member Mar 18, 2010 #3 Mar 18, 2010 #3 The line is: rails_ver = Rails::VERSION::STRING it just means that this constant is not defined in older Rails versions. A simple (but dirty) workaround is to replace the line with rails_ver = Rails::VERSION::STRING rescue '2.0.0'
The line is: rails_ver = Rails::VERSION::STRING it just means that this constant is not defined in older Rails versions. A simple (but dirty) workaround is to replace the line with rails_ver = Rails::VERSION::STRING rescue '2.0.0'