Chartjs-Use chartjs with rails

1👍

add an extra percent sign:

<%%= @foo %> =>  "<%= @foo %>"

or

<%% foo %> => "<% foo %>"

BTW in case you want to start googling for stuff instead of using SO, i googled “escape erb tags” to get this, i’d not done it before.

Leave a comment