Ruby on Rails and in Apache “gotcha”
I’ve installed Apache, installed ruby on rails.
Ruby on Rails works fine on the weBRICK server, but it’s not working on the apache server, just giving me a 500 Internal Server Error.
Better check the logs.
ls -ltr ~/www/myApp/log/
Lo and behold, production server’s the most recently modified!
Check its log, see stuff like:
Status: 500 Internal Server Error
Could not find table ’sessions’
This has gotten me three times using the Ubuntu Community Documentation. It’s in there, but it’s not formatted as an instruction.
Relevant text:
murb: I had to add RailsEnv development as well to get around the ‘no route found to match “/rails/info/properties” with {:method=>:get}’ warning… (can someone elaborate on why?) apparently this is because /info/properties is buggy and no longer supported: http://www.ruby-forum.com/topic/161924
(emphasis mine)
I added RailsEnv development to my httpd.conf, bounced apache, and everything started firing away smooth as silk.
Tags: ruby on rails, Ubuntu