Yep, see your "Status: status500" line? It means you messed up in a
render or redirect call and that gave an invalid status. Apache then
mangles the hell out of your reponse.
Go look at that rails action and re-read the docs on the render/redirect
action you're calling. You probably have a parameter out of alignment.