I have just upgraded to Ruby 1.8.7 and Rails 2.2.2. My previous project
was at Ruby 1.8.6 and Rails 2.0.2. My platform is Windows and Webrick
When I run Webrick, the server starts without error, the application
runs, database connections work and I can click through the pages and
files. What’s interesting is that images are displayed. In the log
file, I get a 500 error after it attempts to retrieve a stylesheet or
Example of attempt to retrieve prototype.js (a 500 error):
127.0.0.1 - - [17/Mar/2010:23:52:52 Eastern Daylight Time] “GET
totype.js?1268882775 HTTP/1.1” 500 338
[2010-03-17 23:52:52] ERROR NoMethodError: private method `gsub!’ called
If I type directly into my browser’s address bar,
500 error message as above. If I leave off “?1268882775”, the browser
asks me to download the JS file.
I created a new rails app, started the webrick server, and it also
fails to run.
Any ideas what could be wrong? I’m stumped.