You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #54. I'm making an organisation chart, based on the code at http://googlevisualr.herokuapp.com/examples/interactive/org_chart, but the users are being set dynamically so I'm using string interpolation. This means I have to use apostrophes to set attributes on the HTML tags, though.
Similar to #54. I'm making an organisation chart, based on the code at http://googlevisualr.herokuapp.com/examples/interactive/org_chart, but the users are being set dynamically so I'm using string interpolation. This means I have to use apostrophes to set attributes on the HTML tags, though.
In Chrome, this throws a
Uncaught SyntaxError: Unexpected identifier
. The javascript looks like this:If I add
.gsub("'", '"')
to the row in question, or if I escape the quotation marks myself, everything renders fine, but it's not very elegant.I'm using v2.1.6 of the gem.
The text was updated successfully, but these errors were encountered: