Convert .js.erb to js.haml
<p>I have an ajax code that removes posts from the page:</p>

<pre><code>$("#post_delete").on("ajax:success", function(data){
  $("#&lt;%= j @post.id.to_s %&gt;").fadeOut();
});
</code></pre>

<p>It works only in the erb format, but when I try to use the haml I recieve an error - "Illegal nesting"</p>

<pre><code>$("#post_delete").on("ajax:success", function(data){
  $("#" + "#{j @post.id.to_s}").fadeOut();
});
</code></pre>