title: Rails RJS template displays code instead of the html page
body: <p>After having Googled and hurting my brain for hours on this, I finally decided to post this question. Here's the code...</p>
  
  <pre><code>view1.html.erb
  -------------- 
  &lt;%=link_to_remote_redbox "Link", :url =&gt; {:action =&gt; :action1, :id =&gt; @some.id} 
  
  some_controller.rb
  ------------------
  def action1
    render :layout =&gt; false
  end
  
  def action2
    do some processing
  end
  
  
  action1.html.erb
  --------------------
  &lt;form onsubmit="new Ajax.Request('/some_controller/action2', {asynchronous:true, evalScripts:true, onComplete:function(request){RedBox.close(); return false;}, parameters:Form.serialize(this)}); return false;}" method="post" action="/some_controller/action2"&gt;
  &lt;input type=text name='username'&gt;
  &lt;input type='submit' value='submit'&gt; 
  &lt;/form&gt;  
  
  action2.rjs
  -----------
  page.replace_html("some_div", (render(:partial =&gt; "some_partial")))
  </code></pre>
  
  <p>with that code in place when action2.rjs kicks in it should display the html page instead I am getting this</p>
  
  <pre><code>Element.update("some_div", "&lt;style type=\"text/css\"&gt;\n\n..............
  </code></pre>
  
  <p>As suggested on other posts I read, they say its caused because of the ":update => some_div" in the link_to_remote_redbox function but clearly my code doesn't have that.</p>
  
  <p>Help is always appreciated.
  Many Thanks </p>