I need to create a second Ruby on Rails application on my site. I've done everything listed in the tutorial (http://rubyonrailswebhosting.lunarpages.com/
), but the second app kept getting a 500 error. I get no log in rails log file, but a fastcgi crash log as follow:
[28/Aug/2008:15:42:03 :: 18273] Dispatcher failed to catch: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split (NoMethodError)
killed by this error
What I did for the second app:
1) Uploaded the whole RoR app (with Rails 2.0.2 frozen in vender folder) folder to /home/lovel12/test
2) Successfully symlinked it to public folder by using "ln -s /home/lovel12/ff/public /home/lovel12/public_html/ff"
3) Edited .htaccess file in /home/lovel12/ff/public folder
a) Uncommented "RewriteBase /" and replaced it to "RewriteBase /ff"
b) Replaced "RewriteRule ^(.*)$ dispatch.cgi [QSA,L]" to "RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]"
4) Changed certain all files of /home/lovel12/ff/tmp, /home/lovel12/ff/log, /home/lovel12/ff/public (folders inclusive) to 777
My first RoR app is still on, and all the settings are the same, I dont understand why the second one cant work. Please help me get out of this. Many thanks.