I use Angularjs in some parts of my Rails application, which works great. But I am wondering how to use the Angular value inside link_to.
Here is my pseudo code:
%table %tr{"ng-repeat" => "book in books"} %td {{book.title}} %td= link_to "Show", book_url({{book.id}})
This gives me an error:
syntax error, unexpected '}', expecting tASSOC
This may also be related to the HAML causing the error, but how can I send the identifier to link_to?
John source share