title: Not displaying ajax response in haml
body: <p>I am trying to display response from the rails server in a <code>div</code>. </p>
  
  <p>ajax call is like this</p>
  
  <pre><code>$.get('/news/search?search=' + existingString, function(data) {
    $("#results").html("");
    console.log(data);
    len=data.length;
    $('#result').append('#{escape_javascript(render("newsdisplay") )}');
  </code></pre>
  
  <p><strong>_newsdisplay.html.haml</strong></p>
  
  <pre><code>- if @results
    - @results.each do |anzen|
      %li.clearfix.postMain.allnews
       .wrapper
         %li
          .messaIcon
            .icon
              %img{:src =&gt; anzen.news_image.thumb.url}
          .messaCon
            .areaDay.clearfix
              %p.messaTextCon
              グループ名:
              %span= anzen.news_name
  </code></pre>
  
  <p><strong>search action</strong></p>
  
  <pre><code>def search
    if params[:search].present?
      @results = News.search(params[:search])
    end
  end
  </code></pre>
  
  <p><strong>routes.rb</strong></p>
  
  <pre><code>get 'news/search', to: 'news#search', as: :newssearch
  </code></pre>
  
  <p>I am getting the response from the server correctly. But no change in the page.But in console the full page with rendered response is displayed. Can anyone guess the issue</p>