Inspection false positive in script section of html.erb

I'm trying to understand what RubyMine is trying to tell me in these two cases:

<script type="text/javascript">
    var lines = <%= raw(@lines.to_json()) %>;

I get an error indicator just before the <% saying "expression expected". Does that mean that RubyMine doesn't handle Ruby insertion inside of the script tag?

Also there is an error on @lines: "Cannot find @lines". How do I get it to find lines? That seems pretty basic.

1 comment
Comment actions Permalink

Hello Paul,

We already have a request for this:
Feel free to vote, comment and track progress of it.



Please sign in to leave a comment.