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
Comment actions Permalink

Hello, Daniel,

sorry for the delay. That appears to be a known issue 

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


Please sign in to leave a comment.