title: javascript HAML partial response for Rails AJAX not working
body: <p>I'm using HAML to return js for <code>remote:true</code> form</p>
  
  <p>Below is my code:</p>
  
  <pre><code>$('#chat-message').val('');
  $('ul.chat').append('#{j render(@chat)}');
  </code></pre>
  
  <p>This line seems to create an error and does not parse correctly.</p>
  
  <p>When I delete the second line it works fine with first line.</p>
  
  <p>What could be wrong?</p>
  
  <p>Below is the error:</p>
  
  <pre><code>ActionView::MissingTemplate at /chats
  =====================================
  
  &gt; Missing partial chats/chat with {:locale=&gt;[:en], :formats=&gt;[:js, :html], :handlers=&gt;[:erb, :builder, :raw, :ruby, :coffee, :haml]}. Searched in:
    * "C:/BitNami/rubystack-2.0.0-4/projects/virtual_exhibition/app/views"
    * "C:/BitNami/rubystack-2.0.0-4/ruby/lib/ruby/gems/2.0.0/gems/jasmine-rails-0.4.9/app/views"
    * "C:/BitNami/rubystack-2.0.0-4/ruby/lib/ruby/gems/2.0.0/bundler/gems/bigbluebutton_rails-2c99a8402df4/app/views"
    * "C:/BitNami/rubystack-2.0.0-4/ruby/lib/ruby/gems/2.0.0/gems/devise_invitable-1.3.1/app/views"
    * "C:/BitNami/rubystack-2.0.0-4/ruby/lib/ruby/gems/2.0.0/gems/devise-3.2.1/app/views"
  
  
  app/views/chats/create.html.haml, line 2
  ----------------------------------------
  
  ``` ruby
      1   $('#chat-message').val('');
  &gt;   2   $('ul.chat').append("#{j render(@chat)}");
  </code></pre>