From what I'm learned the below is suppose to return "alert('Im JS');"
render :update do |page|
page.call :alert, "Im JS"
In Rails 1.2.3 it works perfectly.
BUT in Rails 2.0.2 it returns the js neatly wrapped in a full HTML-body,
and the browser shows me nada... (!)
Please help me here, I've tried everything I can think of for hours now!
Random things I've tryed (not in any order, and just glimpses)
1. use the page/hi.js.rjs
2. use the render :text => "alert('Im JS');", :content_type =>
3. respond_to do |format|
Thank you all in advance!