search for: tip_

Displaying 1 result from an estimated 1 matches for "tip_".

Did you mean: tip
2006 Aug 07
2
.rjs not run unless I manually set the Content-type header
I''ve got this is my controller def destroy @headers[''Content-Type''] = ''text/javascript; charset=utf-8'' end and this in my .rjs file called destroy.rjs page.alert(''test'') page.visual_effect :shrink, ''tip_''+params[:id], :duration => 3 This works, *unless* I uncomment the Content-Type line in the controller. Setting this header should NOT be necessary though I think. The correct content type for rjs should automatically be set by Rails. I''ve searched the web for an answer, but...