title: slim file is not executing the js inside it
body: <p>i am using gem 'jeditable-rails' in my rails 3.2 application for inplace editting
  In my controller, i have </p>
  
  <pre><code>def update
  @article = Article.find(params[:id])
  @article.update_attributes(params[:article])
  render :layout =&gt; false if request.xhr?
  end
  </code></pre>
  
  <p>ANd in my articles/update.js.slim</p>
  
  <p>i have </p>
  
  <pre><code>- unless @article.errors.empty?
    | $("#error_msg").html(@article.errors);
  - else
    | $("#success_msg").html("updated successfully");
  </code></pre>
  
  <p>But when i do an update it updates and going to the js file and renders it like as it is.
  like <code>$("#error_msg").html(@comment.errors);</code> is printed as such or <code>$("#success_msg").html("updated successfully")</code></p>
  
  <p>EDIT :</p>
  
  <p>i am using the jeditable plugin for edit in place for my article title alone. It updates the article title and renders the js file as it is</p>
  
  <p>the response which i got here is json. how to resolve this. GIve  suggestions</p>