I have this code in my process_form.js.erb file:
$('#write_offs_table > tbody').append('<tr class="list-line-<%= cycle('even', 'odd') %>" id="<%= @write_off.id %>">
<td class="name"><%= @write_off.date %></td>
<td><%= @write_off.user.name %></td>
<td><%= @write_off.status %></td>
</tr>');
it doesn't execute and chrome shows me an error:
Uncaught SyntaxError: Unexpected token ILLEGAL