I am using Backbone and Eco templates in my Rails application. My template has the following code:
<% @collection.each (model)-> %>
<% console.log model.get('name') %>
<p><%= model.get('name') %></p>
<p><%= model.get('description') %></p>
<% end %>
For some reason, the HTML is blank. The name and description are not displayed. However, the console.log
method outputs the correct data. What am I doing wrong?