Resulta que al desplegar una app con un servidor mongrel me fallan las funciones ajax. Mirando el archivo de logs de mongrel veo lo siguiente:
-
-
tail -n 100 log/mongrel.log
-
-
Error calling Dispatcher.dispatch #<NoMethodError: 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>
-
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.11/lib/action_controller/cgi_process.rb:54:in `dispatch_cgi’
-
A través de aquí meentero que es problema del action pack y modifico el archivo cgi_process.rb:54
cambio:
-
-
if headers.include?(‘Set-Cookie’)
por :
-
if headers[‘Set-Cookie’]
Reinicio el servidor y andado!!
-
-
mongrel_rails stop -P log/mongrel3001.pi
-
-
mongrel_rails start -d -e development -p 3001 -P log/mongrel3001.pi</code>
