title: Using Handlebars with HAML
body: <p>I'm trying to use HAML with Handlebars and things are not working properly creating errors like:</p>
  <pre><code>Assertion failed: Expected hash or Mixin instance, got [object Function] 
  </code></pre>
  <p>Below is my view:</p>
  <pre><code>%br
  
  %h2 Replies
  
  %table{:class =&gt; &quot;table table-striped&quot;}
    %thead
      %tr
        %th Id
        %th Description
        %th User
        %th Actions
    %tbody
      - @ticket.note.each do |note|
        %tr
          %td= note.id
          %td= note.description
          %td= note.user.name
          / %td= link_to 'Edit', edit_note_path(note), :class =&gt; &quot;btn btn-small&quot; 
          %td &lt;script type=&quot;text/x-handlebars&quot;&gt;{{#linkTo 'notes'}}Edit{{/linkTo}}&lt;/script&gt;
  = link_to 'New', new_note_path, :class =&gt; &quot;btn btn-primary&quot;
  </code></pre>
  <p>What I'm trying to do is use handlebars on an Edit link only and hook it up to Ember.js</p>
  <p>What would be the best way to go about this?</p>