title: Use Angular variable in Rails link_to
body: <p>I'm using Angularjs in parts of my Rails app, which works great. But I'm wondering how to use an Angular value inside a link_to. </p>
  
  <p>Here is my pseudo code:</p>
  
  <pre><code>%table          
    %tr{"ng-repeat" =&gt; "book in books"}
      %td
        {{book.title}}
      %td= link_to "Show", book_url({{book.id}})
  </code></pre>
  
  <p>This gives me an error: </p>
  
  <pre><code>syntax error, unexpected '}', expecting tASSOC
  </code></pre>
  
  <p>This could also have to do with HAML causing the error, but how can I send the ID in the link_to?</p>