Ruby and Javascript not working together

Currently working within RubyMine, trying to add in some Javascript. Within the Javascript whenever I try to use string interpolation within the Javascript its complaining about the hash and the only way to get around this is by wrapping it within double quotations. This then changes the Javascript so I can no longer use auto-completion with text etc. I have attached a screenshot of what this looks like.

 

 

But if I remove the # from the code, the Javascript now looks like this:

It seems the string interpolation is messing with the way RubyMine renders the Javascript.

1 comment

Hello, Daniel,

sorry for the delay. That appears to be a known issue https://youtrack.jetbrains.com/issue/RUBY-16293 

Please check how it goes in RubyMine 2016.1.2 or the latest EAP.

0

Please sign in to leave a comment.